Class ByteBufInput

java.lang.Object
org.neo4j.driver.internal.async.inbound.ByteBufInput
All Implemented Interfaces:
PackInput

public class ByteBufInput extends Object implements PackInput
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    Get the next byte without forwarding the internal pointer
    byte
    Consume one byte
    void
    readBytes(byte[] into, int offset, int toRead)
    Consume a specified number of bytes
    double
    Consume an 8-byte IEEE 754 "double format" floating-point number
    int
    Consume a 4-byte signed integer
    long
    Consume an 8-byte signed integer
    short
    Consume a 2-byte signed integer
    void
    start(io.netty.buffer.ByteBuf newBuf)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
      Specified by:
      readByte in interface PackInput
    • readShort

      public short readShort()
      Description copied from interface: PackInput
      Consume a 2-byte signed integer
      Specified by:
      readShort in interface PackInput
    • readInt

      public int readInt()
      Description copied from interface: PackInput
      Consume a 4-byte signed integer
      Specified by:
      readInt in interface PackInput
    • readLong

      public long readLong()
      Description copied from interface: PackInput
      Consume an 8-byte signed integer
      Specified by:
      readLong in interface PackInput
    • readDouble

      public double readDouble()
      Description copied from interface: PackInput
      Consume an 8-byte IEEE 754 "double format" floating-point number
      Specified by:
      readDouble in interface PackInput
    • readBytes

      public void readBytes(byte[] into, int offset, int toRead)
      Description copied from interface: PackInput
      Consume a specified number of bytes
      Specified by:
      readBytes in interface PackInput
    • peekByte

      public byte peekByte()
      Description copied from interface: PackInput
      Get the next byte without forwarding the internal pointer
      Specified by:
      peekByte in interface PackInput