java.lang.Object
org.neo4j.driver.internal.async.inbound.ByteBufInput
- All Implemented Interfaces:
PackInput
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
peekByte()
Get the next byte without forwarding the internal pointerbyte
readByte()
Consume one bytevoid
readBytes
(byte[] into, int offset, int toRead) Consume a specified number of bytesdouble
Consume an 8-byte IEEE 754 "double format" floating-point numberint
readInt()
Consume a 4-byte signed integerlong
readLong()
Consume an 8-byte signed integershort
Consume a 2-byte signed integervoid
start
(io.netty.buffer.ByteBuf newBuf) void
stop()
-
Constructor Details
-
ByteBufInput
public ByteBufInput()
-
-
Method Details
-
start
public void start(io.netty.buffer.ByteBuf newBuf) -
stop
public void stop() -
readByte
public byte readByte()Description copied from interface:PackInput
Consume one byte -
readShort
public short readShort()Description copied from interface:PackInput
Consume a 2-byte signed integer -
readInt
public int readInt()Description copied from interface:PackInput
Consume a 4-byte signed integer -
readLong
public long readLong()Description copied from interface:PackInput
Consume an 8-byte signed integer -
readDouble
public double readDouble()Description copied from interface:PackInput
Consume an 8-byte IEEE 754 "double format" floating-point number- Specified by:
readDouble
in interfacePackInput
-
readBytes
public void readBytes(byte[] into, int offset, int toRead) Description copied from interface:PackInput
Consume a specified number of bytes -
peekByte
public byte peekByte()Description copied from interface:PackInput
Get the next byte without forwarding the internal pointer
-