toLittleEndian

convert a integral type T into an array of bytes.

  1. void toLittleEndian(T n, ubyte[] output)
    pure nothrow @safe @safe @nogc
    void
    toLittleEndian
    (
    T
    )
    (
    T n
    ,
    ubyte[] output
    )
    if (
    isIntegral!T
    )
  2. void toLittleEndian(T[] ns, ubyte[] output)
  3. ubyte[] toLittleEndian(T n)
  4. ubyte[] toLittleEndian(T[] ns)

Parameters

n T

the number

output ubyte[]

the buffer to write the bytes to

Meta