Module ibm.jzos

Class BinarySignedLongField

    • Constructor Detail

      • BinarySignedLongField

        public BinarySignedLongField​(int offset,
                                     int length)
    • 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 BinaryAsLongField
        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 BinaryAsLongField
        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 BinaryAsLongField
        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 BinaryAsLongField
        Parameters:
        value - the signed long value
        buffer - the byte array
        Throws:
        java.lang.IllegalArgumentException - if the value is out of range