@Test public void testReadQWord() throws IOException { UnsignedLong longValue = UnsignedLong.fromLongBits(Long.MAX_VALUE + 500); BinaryReader binaryReader = testBinaryReaderBuilder.putQWord(longValue).build(); assertEquals(longValue, binaryReader.readQWord()); assertEquals(8, binaryReader.getPosition()); }
public UnsignedLong readQWord() { ByteBuffer byteBuffer = ByteBuffer.wrap(bytes, position, 8); position += 8; return UnsignedLong.fromLongBits(byteBuffer.order(ByteOrder.LITTLE_ENDIAN).getLong()); }
BinaryReader { public UnsignedLong readQWord() { ByteBuffer byteBuffer = ByteBuffer.wrap(bytes, position, 8); position += 8; return UnsignedLong.fromLongBits(byteBuffer.order(ByteOrder.LITTLE_ENDIAN).getLong()); } }
BinaryReader { public UnsignedLong readQWord() { ByteBuffer byteBuffer = ByteBuffer.wrap(bytes, position, 8); position += 8; return UnsignedLong.fromLongBits(byteBuffer.order(ByteOrder.LITTLE_ENDIAN).getLong()); } BinaryReader(BinaryReader binaryReader, int position);  BinaryReader(InputStream inputStream, int size);  BinaryReader(byte[] bytes); }
BinaryReader { public UnsignedLong readQWord() { ByteBuffer byteBuffer = ByteBuffer.wrap(bytes, position, 8); position += 8; return UnsignedLong.fromLongBits(byteBuffer.order(ByteOrder.LITTLE_ENDIAN).getLong()); } BinaryReader(BinaryReader binaryReader, int position);  BinaryReader(InputStream inputStream, int size);  BinaryReader(byte[] bytes); int read(); int peek(); byte[] peekBytes(int length); byte[] readBytes(int length); void readBytes(byte[] buf, int offset, int length); String readGuid(); String readString(int length); String readWString(int length); UnsignedLong readQWord(); UnsignedInteger readDWord(); UnsignedInteger readDWordBE(); int readWord(); int readWordBE(); Date readFileTime(); String readAndBase64EncodeBinary(int length); void skip(int bytes); int getPosition(); byte[] getBytes(); }
BinaryReader { public UnsignedLong readQWord() { ByteBuffer byteBuffer = ByteBuffer.wrap(bytes, position, 8); position += 8; return UnsignedLong.fromLongBits(byteBuffer.order(ByteOrder.LITTLE_ENDIAN).getLong()); } BinaryReader(BinaryReader binaryReader, int position);  BinaryReader(InputStream inputStream, int size);  BinaryReader(byte[] bytes); int read(); int peek(); byte[] peekBytes(int length); byte[] readBytes(int length); void readBytes(byte[] buf, int offset, int length); String readGuid(); String readString(int length); String readWString(int length); UnsignedLong readQWord(); UnsignedInteger readDWord(); UnsignedInteger readDWordBE(); int readWord(); int readWordBE(); Date readFileTime(); String readAndBase64EncodeBinary(int length); void skip(int bytes); int getPosition(); byte[] getBytes(); static final long EPOCH_OFFSET; static final int[][] INDEX_ARRAYS; }