- All Superinterfaces:
Field
- All Known Implementing Classes:
IbmFloatField
An interface which describes a
Field
which has float accessors.
- Since:
- 2.1.0
-
Method Summary
Modifier and TypeMethodDescriptionfloat
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.Methods inherited from interface com.ibm.jzos.fields.Field
getByteLength, getOffset, setOffset
-
Method Details
-
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 arraybufOffset
- 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 valuebuffer
- 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 valuebuffer
- the byte arraybufOffset
- the additional offset into the byte array
-