com.ibm.jzos.fields.daa

Class BinarySignedLongL4Field

    • Constructor Detail

      • BinarySignedLongL4Field

        public BinarySignedLongL4Field(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 BinarySignedLongField
        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 BinarySignedLongField
        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 BinarySignedLongField
        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 BinarySignedLongField
        Parameters:
        value - the signed long value
        buffer - the byte array
        Throws:
        java.lang.IllegalArgumentException - if the value is out of range
� Copyright IBM Corporation 2005, 2022.