Class CompactID


  • public class CompactID
    extends Object
    This class is used to represent the CompactID structrue.
    • Field Detail

      • n

        public long n
      • guidIndex

        public long guidIndex
    • Constructor Detail

      • CompactID

        public CompactID()
    • Method Detail

      • serializeToByteList

        public List<Byte> serializeToByteList()
                                       throws IOException
        This method is used to convert the element of CompactID object into a byte List.
        Returns:
        Return the byte list which store the byte information of CompactID.
        Throws:
        IOException
      • doDeserializeFromByteArray

        public int doDeserializeFromByteArray​(byte[] byteArray,
                                              int startIndex)
                                       throws IOException
        This method is used to deserialize the CompactID object from the specified byte array and start index.
        Parameters:
        byteArray - Specify the byte array.
        startIndex - Specify the start index from the byte array.
        Returns:
        Return the length in byte of the CompactID object.
        Throws:
        IOException