Reads a value with the given endianness.
BufferOverflowException if there isn't enough data to read.
t { Buffer buffer = new Buffer(cast(ubyte[])[0, 0, 0, 1, 1, 0]); assert(buffer.read!(Endian.bigEndian, int)() == 1); assert(buffer.read!(Endian.littleEndian, short)() == 1);
See Implementation
Reads a value with the given endianness.