toLittleEndian

convert a integral type T[] into an array of bytes.

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

Meta