mysql-native v3.0.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.date.TimeOfDay) tod
) pure;

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

NameDescription
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.Date) dt
) pure;

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

NameDescription
dt std.datetime.Date 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.date.DateTime) dt
) pure;

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

NameDescription
dt std.datetime.DateTime struct.

Returns

Packed ubyte[].