consumeIfComplete

Decodes a Length Coded Binary from a packet

Parameters

packet ubyte[]

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

Return Value

Type: T

A decoded LCB value

See Also

struct mysql.protocol.extra_types.LCB

Meta