mysql-native v3.0.0

API Reference Home: [This Version] [Latest Version] [Other Versions]


consumeIfComplete - multiple declarations

Function consumeIfComplete

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

Function consumeIfComplete

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

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