Module mysql.protocol.packet_helpers
Internal - Helper functions for the communication protocol.
Functions
Name | Description |
---|---|
consume
|
Returns N number of bytes from the packet and advances the array |
consume
|
|
consume
|
|
consume
|
|
consume
|
Parse Length Coded String |
consume
|
|
consume
|
|
consume
|
|
consume
|
|
consume
|
|
consume
|
|
consumeBinaryValueIfComplete
|
|
consumeIfComplete
|
|
consumeIfComplete
|
|
consumeIfComplete
|
Decodes a Length Coded Binary from a packet |
consumeNonBinaryValueIfComplete
|
|
decode
|
|
decode
|
Decodes a Length Coded Binary from a packet |
decode
|
|
decode
|
|
decodeLCBHeader
|
|
getNumLCBBytes
|
Extract number of bytes used for this LCB |
hasEnoughBytes
|
|
myto
|
|
pack
|
Function to pack a Date into a binary encoding for transmission to the server. |
pack
|
Function to pack a TimeOfDay into a binary encoding for transmission to the server. |
pack
|
Function to pack a DateTime into a binary encoding for transmission to the server. |
packInto
|
Converts a value into a sequence of bytes and fills the supplied array |
packLCS
|
|
packLength
|
|
setPacketHeader
|
Set packet length and number. It's important that the length of packet has |
setPacketHeader
|
|
skip
|
Skips over n items, advances the array, and return the newly advanced array to allow method chaining. |
toDate
|
Function to extract a Date from a text encoded column value. |
toDate
|
Function to extract a Date from a binary encoded row. |
toDateTime
|
Function to extract a DateTime from a ulong. |
toDateTime
|
Function to extract a DateTime from a text encoded column value. |
toDateTime
|
Function to extract a DateTime from a binary encoded row. |
toTimeDiff
|
Function to extract a time difference from a text encoded column value. |
toTimeDiff
|
Function to extract a time difference from a binary encoded row. |
toTimeOfDay
|
Function to extract a TimeOfDay from a text encoded column value. |
toTimeOfDay
|
Function to extract a TimeOfDay from a binary encoded row. |