fromLittleEndian

Converts little endian bytes to integrals of type T size of bs has to match the size in bytes of output

  1. T fromLittleEndian(in ubyte[] bs)
  2. void fromLittleEndian(in ubyte[] bs, T[] output)
    @safe @nogc
    void
    fromLittleEndian
    (
    T
    )
    (
    in ubyte[] bs
    ,
    T[] output
    )
    if (
    isIntegral!T
    )
    in { assert (bs.length == output.length * T.sizeof, "size of input array does not match size of output array"); }

Parameters

bs
Type: ubyte[]

the little endian bytes

output
Type: T[]

where the T's get written to

Meta