toBigEndian

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

  1. void toBigEndian(T val, ubyte[] output)
  2. void toBigEndian(T[] ns, ubyte[] output)
    @safe @nogc
    void
    toBigEndian
    (
    T
    )
    (
    in T[] ns
    ,
    ubyte[] output
    )
    if (
    isIntegral!T
    )
  3. ubyte[T.sizeof] toBigEndian(T n)
  4. ubyte[] toBigEndian(T[] ns)

Parameters

ns T[]

the numbers

output ubyte[]

the buffer to write the bytes to

Meta