toLittleEndian

convert a integral type T into an array of bytes.

  1. void toLittleEndian(in T val, ubyte[] output)
    @safe @nogc
    void
    toLittleEndian
    (
    T
    )
    (
    in T val
    ,
    ubyte[] output
    )
    if (
    isIntegral!T
    )
    in { assert (output.length >= T.sizeof, "output buffer too small"); }
  2. void toLittleEndian(in T[] ns, ubyte[] output)

Parameters

output
Type: ubyte[]

the buffer to write the bytes to

Meta