mysql-native v2.2.0
API Reference Home: [This Version] [Latest Version] [Other Versions]
pack - multiple declarations
Function pack
Function to pack a TimeOfDay into a binary encoding for transmission to the server.
ubyte[] pack
(
const(std .datetime .TimeOfDay) tod
) pure nothrow;
Time/date structures are packed into a string of bytes with a leading length byte, and a minimal number of bytes to embody the data.
Parameters
| Name | Description |
|---|---|
| tod | TimeOfDay struct. |
Returns
Packed ubyte[].
Function pack
Function to pack a Date into a binary encoding for transmission to the server.
ubyte[] pack
(
const(std .datetime .Date) dt
) pure nothrow;
Time/date structures are packed into a string of bytes with a leading length byte, and a minimal number of bytes to embody the data.
Parameters
| Name | Description |
|---|---|
| dt | std struct. |
Returns
Packed ubyte[].
Function pack
Function to pack a DateTime into a binary encoding for transmission to the server.
ubyte[] pack
(
const(std .datetime .DateTime) dt
) pure nothrow;
Time/date structures are packed into a string of bytes with a leading length byte, and a minimal number of bytes to embody the data.
Parameters
| Name | Description |
|---|---|
| dt | std struct. |
Returns
Packed ubyte[].