Module ibm.jzos

Class BinaryUnsignedLongL5Field

    • Constructor Detail

      • BinaryUnsignedLongL5Field

        public BinaryUnsignedLongL5Field​(int offset)
    • Method Detail

      • getLong

        public long getLong​(byte[] buffer,
                            int bufOffset)
        Description copied from class: BinaryAsLongField
        Answer a long from the given byte array buffer, at the bufOffset + offset of this field.
        Specified by:
        getLong in interface LongAccessor
        Overrides:
        getLong in class BinaryUnsignedLongField
        Parameters:
        buffer - the byte array
        bufOffset - the additional offset into the byte array
        Returns:
        long
      • getLong

        public long getLong​(byte[] buffer)
        Description copied from class: BinaryAsLongField
        Answer a long from the given byte array buffer, at the offset of this field.
        Specified by:
        getLong in interface LongAccessor
        Overrides:
        getLong in class BinaryUnsignedLongField
        Parameters:
        buffer - the byte array
        Returns:
        long
      • putLong

        public void putLong​(long value,
                            byte[] buffer,
                            int bufOffset)
                     throws java.lang.IllegalArgumentException
        Description copied from class: BinaryAsLongField
        Put a signed long into thegiven byte array buffer, at the bufOffset + offset of this field.
        Specified by:
        putLong in interface LongAccessor
        Overrides:
        putLong in class BinaryUnsignedLongField
        Parameters:
        value - the signed long value
        buffer - the byte array
        bufOffset - the additional offset into the byte array
        Throws:
        java.lang.IllegalArgumentException - if the value is out of range
      • putLong

        public void putLong​(long value,
                            byte[] buffer)
                     throws java.lang.IllegalArgumentException
        Description copied from class: BinaryAsLongField
        Put a signed long into thegiven byte array buffer, at the bufOffset of this field.
        Specified by:
        putLong in interface LongAccessor
        Overrides:
        putLong in class BinaryUnsignedLongField
        Parameters:
        value - the signed long value
        buffer - the byte array
        Throws:
        java.lang.IllegalArgumentException - if the value is out of range