write
fn
void 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
T | The integral type to convert the first T.sizeof bytes to. |
endianness | The endianness to _write the bytes in. |
range | The range to _write to. |
value | The value to _write. |
index | The index to start writing to. If index is a pointer, then it is updated to the index after the bytes read. |