append

fnvoid append(T, Endian endianness = Endian.bigEndian, R)(R range, const T value) if (canSwapEndianness!T && isOutputRange!(R, ubyte))

Takes an integral value, converts it to the given endianness, and appends it to the given range of ubytes (using put) as a sequence of T.sizeof ubytes starting at index. hasSlicing!R must be true.

Parameters

TThe integral type to convert the first T.sizeof bytes to.
endiannessThe endianness to write the bytes in.
rangeThe range to _append to.
valueThe value to _append.