com.ibm.jzos.fields

Interface FloatAccessor

  • All Superinterfaces:
    Field
    All Known Implementing Classes:
    IbmFloatField


    public interface FloatAccessor
    extends Field
    An interface which describes a Field which has float accessors.

    Since:
    2.1.0
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      float getFloat(byte[] buffer)
      Answer a float from the given byte array buffer, at the offset of this field.
      float getFloat(byte[] buffer, int bufOffset)
      Answer a float from the given byte array buffer, at the bufOffset + offset of this field.
      void putFloat(float value, byte[] buffer)
      Put a float into the given byte array buffer, at the offset of this field.
      void putFloat(float value, byte[] buffer, int bufOffset)
      Put a float into the given byte array buffer, at the bufOffset + offset of this field.
    • Method Detail

      • getFloat

        float getFloat(byte[] buffer)
        Answer a float from the given byte array buffer, at the offset of this field.
        Parameters:
        buffer - the byte array
        Returns:
        float
      • getFloat

        float getFloat(byte[] buffer,
                     int bufOffset)
        Answer a float 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:
        float
      • putFloat

        void putFloat(float value,
                    byte[] buffer)
        Put a float into the given byte array buffer, at the offset of this field.
        Parameters:
        value - the float value
        buffer - the byte array
      • putFloat

        void putFloat(float value,
                    byte[] buffer,
                    int bufOffset)
        Put a float into the given byte array buffer, at the bufOffset + offset of this field.
        Parameters:
        value - the float value
        buffer - the byte array
        bufOffset - the additional offset into the byte array
© Copyright IBM Corporation 2005, 2014.