Class PacketBuffer


  • public class PacketBuffer
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] expose()  
      byte read()
      Reads raw byte from the buffer
      int readInt()
      Reads int from the buffer.
      short readShort()
      Reads short from the buffer.
      int remaining()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • read

        public byte read()
        Reads raw byte from the buffer
        Returns:
        byte read
      • readShort

        public short readShort()
        Reads short from the buffer.
        16bit integer (00 00)
        Returns:
        short read
      • readInt

        public final int readInt()
        Reads int from the buffer.
        32bit integer (00 00 00 00)
        Returns:
        int read
      • expose

        public byte[] expose()
      • remaining

        public int remaining()