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.

  1. ubyte[] pack(TimeOfDay tod)
    @safe pure nothrow
    ubyte[]
    pack
    (
    in TimeOfDay tod
    )
  2. ubyte[] pack(Date dt)
  3. ubyte[] pack(DateTime dt)

Return Value

Type: ubyte[]

Packed ubyte[].

Meta