Class NCData

    • Constructor Detail

      • NCData

        public NCData​(byte[] value)
        Create a NCData instance.
        Parameters:
        value - ByteBuffer value of the created instance
      • NCData

        public NCData​(byte[] value,
                      int offset,
                      int length)
        Create a NCData instance.
        Parameters:
        value - ByteBuffer value of the created instance
        offset - offset of the subarray to be used
        length - length of the subarray to be used
      • NCData

        public NCData​(ByteBuffer value)
        Constructs a NCData object holding the specified bytes. The NCData instance creates a copy of the specified ByteBuffer object.
        Parameters:
        value - bytes represented by the created object
    • Method Detail

      • count

        public int count()
        Returns the number of bytes
        Returns:
        number of bytes
      • bytes

        public ByteBuffer bytes()
        Returns the ByteBuffer value of this object
        Returns:
        ByteBuffer value of this object
      • byteArray

        public byte[] byteArray()
        Returns the value of this object as byte[]
        Returns:
        byte[] value of this object
      • getType

        public int getType()
        Description copied from class: NCType
        Returns the type of this NCType object.
        Specified by:
        getType in class NCType
        Returns:
        the type of this NCType