toBigEndian

convert a integral type T into an array of bytes.

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

Parameters

output
Type: ubyte[]

the buffer to write the bytes to

Meta