LengthPrefixedStream

Undocumented in source.
class LengthPrefixedStream : ModifierStream (
T
Endian endianness = Endian.bigEndian
) if (
isNumeric!T ||
(
is(typeof(T.encode)) &&
isIntegral!(Parameters!(T.encode)[0])
)
) {}

Constructors

this
this(Stream stream, size_t maxLength)
Undocumented in source.

Members

Functions

receive
ubyte[] receive()
send
ptrdiff_t send(ubyte[] payload)

Sends a buffer prefixing it with its length.

Manifest constants

requiredSize
enum requiredSize;
Undocumented in source.
requiredSize
enum requiredSize;
Undocumented in source.

Variables

maxLength
size_t maxLength;
Undocumented in source.

Inherited Members

From ModifierStream

stream
Stream stream;
Undocumented in source.
send
ptrdiff_t send(ubyte[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
receive
ubyte[] receive()
Undocumented in source. Be warned that the author may not have intended to support it.
lastRecv
ptrdiff_t lastRecv [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta