Class CommonPacketFormat

    • Constructor Detail

      • CommonPacketFormat

        public CommonPacketFormat​(short type)
      • CommonPacketFormat

        public CommonPacketFormat​(short type,
                                  java.nio.ByteBuffer payload)
      • CommonPacketFormat

        public CommonPacketFormat​(short type,
                                  byte[] payload)
      • CommonPacketFormat

        public CommonPacketFormat​(java.nio.ByteBuffer source,
                                  CpfWrapper parent)
    • Method Detail

      • getItemType

        public short getItemType()
      • setItemType

        public void setItemType​(short itemType)
      • setPayload

        public void setPayload​(java.nio.ByteBuffer source)
      • getItemLen

        public int getItemLen()
      • setParent

        public void setParent​(CpfWrapper newParent)
      • writeBytes

        public io.netty.buffer.ByteBuf writeBytes​(io.netty.buffer.ByteBuf dest)
      • putBytes

        public void putBytes​(java.nio.ByteBuffer dest)
      • getPayload

        public java.nio.ByteBuffer getPayload()
      • putPayload

        public void putPayload​(java.nio.ByteBuffer dest)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object