Class TwoBytesOfData

  • All Implemented Interfaces:
    IProperty

    public class TwoBytesOfData
    extends Object
    implements IProperty
    This class is used to represent the property contains 2 bytes of data in the PropertySet.rgData stream field.
    • Field Detail

      • data

        public byte[] data
    • Constructor Detail

      • TwoBytesOfData

        public TwoBytesOfData()
    • Method Detail

      • doDeserializeFromByteArray

        public int doDeserializeFromByteArray​(byte[] byteArray,
                                              int startIndex)
        This method is used to deserialize the TwoBytesOfData from the specified byte array and start index.
        Specified by:
        doDeserializeFromByteArray in interface IProperty
        Parameters:
        byteArray - Specify the byte array.
        startIndex - Specify the start index from the byte array.
        Returns:
        Return the length in byte of the TwoBytesOfData.
      • serializeToByteList

        public List<Byte> serializeToByteList()
        This method is used to convert the element of TwoBytesOfData into a byte List.
        Specified by:
        serializeToByteList in interface IProperty
        Returns:
        Return the byte list which store the byte information of TwoBytesOfData.