public void read(byte[] buffer) throws IOException {
		
		byte[] tmpBuffer = buffer.clone();
		
		raf.read(tmpBuffer);
		
		if(endianness == LITTLE_ENDIAN) {
			for(int i = 0; i < tmpBuffer.length; i++)
				buffer[(tmpBuffer.length - 1) - i] = tmpBuffer[i];
		} else
			for(int i = 0; i < tmpBuffer.length; i++)
				buffer[i] = tmpBuffer[i];
		
	}