write

fnvoid write(T, Endian endianness = Endian.bigEndian, R)(R range, const T value, size_t index) if (canSwapEndianness!T && isForwardRange!R && hasSlicing!R && is(ElementType!R : ubyte))

Takes an integral value, converts it to the given endianness, and writes it to the given range of ubytes 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 _write to.
valueThe value to _write.
indexThe index to start writing to. If index is a pointer, then it is updated to the index after the bytes read.
fnvoid write(T, Endian endianness = Endian.bigEndian, R)(R range, const T value, size_t * index) if (canSwapEndianness!T && isForwardRange!R && hasSlicing!R && is(ElementType!R : ubyte))

Ditto