Class Compact64bitInt

  • All Implemented Interfaces:
    IFSSHTTPBSerializable

    public class Compact64bitInt
    extends BasicObject
    A 9-byte encoding of values in the range 0x0002000000000000 through 0xFFFFFFFFFFFFFFFF
    • Field Detail

      • CompactUintNullType

        public static final int CompactUintNullType
        Specify the type value for compact uint zero type value.
        See Also:
        Constant Field Values
      • CompactUint7bitType

        public static final int CompactUint7bitType
        Specify the type value for compact uint 7 bits type value.
        See Also:
        Constant Field Values
      • CompactUint14bitType

        public static final int CompactUint14bitType
        Specify the type value for compact uint 14 bits type value.
        See Also:
        Constant Field Values
      • CompactUint21bitType

        public static final int CompactUint21bitType
        Specify the type value for compact uint 21 bits type value.
        See Also:
        Constant Field Values
      • CompactUint28bitType

        public static final int CompactUint28bitType
        Specify the type value for compact uint 28 bits type value.
        See Also:
        Constant Field Values
      • CompactUint35bitType

        public static final int CompactUint35bitType
        Specify the type value for compact uint 35 bits type value.
        See Also:
        Constant Field Values
      • CompactUint42bitType

        public static final int CompactUint42bitType
        Specify the type value for compact uint 42 bits type value.
        See Also:
        Constant Field Values
      • CompactUint49bitType

        public static final int CompactUint49bitType
        Specify the type value for compact uint 49 bits type value.
        See Also:
        Constant Field Values
      • CompactUint64bitType

        public static final int CompactUint64bitType
        Specify the type value for compact uint 64 bits type value.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Compact64bitInt

        public Compact64bitInt​(long decodedValue)
        Initializes a new instance of the Compact64bitInt class with specified value.
        Parameters:
        decodedValue - Decoded value
      • Compact64bitInt

        public Compact64bitInt()
        Initializes a new instance of the Compact64bitInt class, this is the default constructor.
    • Method Detail

      • doDeserializeFromByteArray

        protected int doDeserializeFromByteArray​(byte[] byteArray,
                                                 int startIndex)
                                          throws IOException
        This method is used to deserialize the Compact64bitInt basic object from the specified byte array and start index.
        Specified by:
        doDeserializeFromByteArray in class BasicObject
        Parameters:
        byteArray - Specify the byte array.
        startIndex - Specify the start index from the byte array.
        Returns:
        Return the length in byte of the Compact64bitInt basic object.
        Throws:
        IOException
      • getType

        public int getType()
      • getDecodedValue

        public long getDecodedValue()
      • setDecodedValue

        public Compact64bitInt setDecodedValue​(long decodedValue)