pack - multiple declarations
Function pack
Function to pack a TimeOfDay into a binary encoding for transmission to the server.
ubyte[] pack
(
in const(std .datetime .date .TimeOfDay) tod
) pure nothrow @safe;
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
(
in const(std .datetime .date .Date) dt
) pure nothrow @safe;
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
(
in const(std .datetime .date .DateTime) dt
) pure nothrow @safe;
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[].