Module ibm.jzos

Class PackedUnsignedLongP18Field

All Implemented Interfaces:
Field, LongAccessor

public class PackedUnsignedLongP18Field extends PackedUnsignedLongField
  • Constructor Details

    • PackedUnsignedLongP18Field

      public PackedUnsignedLongP18Field(int offset)
  • Method Details

    • getLong

      public long getLong(byte[] buffer, int bufOffset)
      Description copied from class: PackedDecimalAsLongField
      Answer a long value from the given byte array buffer, at the bufOffset + offset of this field.

      Note: the data is not checked for valid decimal digits, although the sign nibble is checked for a valid value in the range x'A'-x'F'.

      Specified by:
      getLong in interface LongAccessor
      Overrides:
      getLong in class PackedUnsignedLongField
      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: PackedDecimalAsLongField
      Answer a long value from the given byte array buffer, at the offset of this field.

      Note: the data is not checked for valid decimal digits, although the sign nibble is checked for a valid value in the range x'A'-x'F'.

      Specified by:
      getLong in interface LongAccessor
      Overrides:
      getLong in class PackedUnsignedLongField
      Parameters:
      buffer - the byte array
      Returns:
      long
    • putLong

      public void putLong(long value, byte[] buffer, int bufOffset) throws IllegalArgumentException
      Description copied from class: PackedDecimalAsLongField
      Put a long value into the given byte array buffer, at the bufOffset + offset of this field.

      Note: If the field is unsigned, a x'F' is supplied as the sign nibble in the field.

      Specified by:
      putLong in interface LongAccessor
      Overrides:
      putLong in class PackedUnsignedLongField
      Parameters:
      value - the signed int value
      buffer - the byte array
      bufOffset - the additional offset into the byte array
      Throws:
      IllegalArgumentException - if the value is out of range
    • putLong

      public void putLong(long value, byte[] buffer) throws IllegalArgumentException
      Description copied from class: PackedDecimalAsLongField
      Put a long value into the given byte array buffer, at the offset of this field.

      Note: If the field is unsigned, a x'F' is supplied as the sign nibble in the field.

      Specified by:
      putLong in interface LongAccessor
      Overrides:
      putLong in class PackedUnsignedLongField
      Parameters:
      value - the signed int value
      buffer - the byte array
      Throws:
      IllegalArgumentException - if the value is out of range