Reads a value using the system's endianness.
BufferOverflowException if there isn't enough data to read.
t { version(BigEndian) Buffer buffer = new Buffer([0, 0, 0, 1]); version(LittleEndian) Buffer buffer = new Buffer([1, 0, 0, 0]); assert(buffer.read!int() == 1);
See Implementation
Reads a value using the system's endianness.