Writes data to the buffer using the system's endianness.
t { Buffer buffer = new Buffer(5); buffer.write(ubyte(5)); buffer.write(10); version(BigEndian) assert(buffer.data!ubyte == [5, 0, 0, 0, 10]); version(LittleEndian) assert(buffer.data!ubyte == [5, 10, 0, 0, 0]);
See Implementation
Writes data to the buffer using the system's endianness.