pack - multiple declarations

Function pack

Function to pack a Date into a binary encoding for transmission to the server.

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.

Prototype

ubyte[] pack(
  const(std.datetime.Date) dt
) pure nothrow;

Parameters

NameDescription
dt std.datetime.Date struct.

Returns

Packed ubyte[].

Function pack

Function to pack a TimeOfDay into a binary encoding for transmission to the server.

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.

Prototype

ubyte[] pack(
  const(std.datetime.TimeOfDay) tod
) pure nothrow;

Parameters

NameDescription
tod TimeOfDay struct.

Returns

Packed ubyte[].

Function pack

Function to pack a DateTime into a binary encoding for transmission to the server.

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.

Prototype

ubyte[] pack(
  const(std.datetime.DateTime) dt
) pure nothrow;

Parameters

NameDescription
dt std.datetime.DateTime struct.

Returns

Packed ubyte[].

Authors

Copyright

License