Class Data

    • Field Detail

      • data

        protected byte[] data
    • Constructor Detail

      • Data

        public Data()
      • Data

        public Data​(byte[] data)
        Parameters:
        data - the data
    • Method Detail

      • getData

        public byte[] getData()
        Returns:
        the data
      • setData

        public Data setData​(byte[] data)
        Parameters:
        data - the data to set
        Returns:
        self
      • serialize

        public byte[] serialize()
        Description copied from interface: IPacket
        Sets all payloads parent packet if applicable, then serializes this packet and all payloads.
        Returns:
        a byte[] containing this packet and payloads
      • deserializer

        public static Deserializer<Data> deserializer()
        Deserializer function for generic payload data.
        Returns:
        deserializer function