com.ibm.jzos.fields

Interface IntAccessor

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getInt(byte[] buffer)
      Answer an int from the given byte array buffer, at the offset of this field.
      int getInt(byte[] buffer, int bufOffset)
      Answer an int from the given byte array buffer, at the bufOffset + offset of this field.
      boolean isSigned()
      Answer whether the field is signed
      void putInt(int value, byte[] buffer)
      Put an int into thegiven byte array buffer, at the offset of this field.
      void putInt(int value, byte[] buffer, int bufOffset)
      Put an int into thegiven byte array buffer, at the bufOffset + offset of this field.
    • Method Detail

      • getInt

        int getInt(byte[] buffer)
        Answer an int from the given byte array buffer, at the offset of this field.
        Parameters:
        buffer - the byte array
        Returns:
        int
      • getInt

        int getInt(byte[] buffer,
                 int bufOffset)
        Answer an int from the given byte array buffer, at the bufOffset + offset of this field.
        Parameters:
        buffer - the byte array
        bufOffset - the additional offset into the byte array
        Returns:
        int
      • putInt

        void putInt(int value,
                  byte[] buffer)
                    throws java.lang.IllegalArgumentException
        Put an int into thegiven byte array buffer, at the offset of this field.
        Parameters:
        value - the int value
        buffer - the byte array
        Throws:
        java.lang.IllegalArgumentException - if the value is out of range
      • putInt

        void putInt(int value,
                  byte[] buffer,
                  int bufOffset)
                    throws java.lang.IllegalArgumentException
        Put an int into thegiven byte array buffer, at the bufOffset + offset of this field.
        Parameters:
        value - the int value
        buffer - the byte array
        bufOffset - the additional offset into the byte array
        Throws:
        java.lang.IllegalArgumentException - if the value is out of range
      • isSigned

        boolean isSigned()
        Answer whether the field is signed
© Copyright IBM Corporation 2005, 2014.