Function consumeIfComplete

Decodes a Length Coded Binary from a packet

T consumeIfComplete(T) (
  ref ubyte[] packet
) pure nothrow;

See Also

struct LCB

Parameters

NameDescription
packet A packet that starts with a LCB. The bytes is popped off iff the packet is complete. See LCB.

Returns

A decoded LCB value