toBigEndian

convert a integral type T into an array of bytes.

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

Parameters

n T

the number

output ubyte[]

the buffer to write the bytes to

Meta