Chunks

This struct converts a Message into chunks as defined in http://docs.graylog.org/en/latest/pages/gelf.html#chunked-gelf

It is an InputRange.

Constructors

this
this(Message message, uint chunkSize)

Convert a Message into chunks

this
this(void[] message, uint chunkSize, ulong messageId)

In LDC 0.17.2, std.zlib.compress returns in const(void)[]. This ctor is the fix for now. Remove when LDC catches up.

this
this(ubyte[] message, uint chunkSize, ulong messageId)

Use this when you've converted a message to bytes. Use this after you have compressed your message

Members

Functions

empty
bool empty()
Undocumented in source. Be warned that the author may not have intended to support it.
front
ubyte[] front()
Undocumented in source. Be warned that the author may not have intended to support it.
length
auto length()
Undocumented in source. Be warned that the author may not have intended to support it.
popFront
void popFront()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta