Buffer.read

Reads a value using the system's endianness.

Throws

BufferOverflowException if there isn't enough data to read.

Examples

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);
	

Meta