consumeIfComplete - multiple declarations

Function consumeIfComplete

Prototype

SQLValue consumeIfComplete(T, int N)(
  ref ubyte[] packet,
  bool binary,
  bool unsigned
);

Function consumeIfComplete

Prototype

SQLValue consumeIfComplete()(
  ref ubyte[] packet,
  SQLType sqlType,
  bool binary,
  bool unsigned,
  ushort charSet
);

Function consumeIfComplete

Decodes a Length Coded Binary from a packet

Prototype

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

See Also

struct LCB

Parameters

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

Authors

Copyright

License