public class FloatConverter
extends java.lang.Object
double
value of appropriate integer type.
This class handles the conversion of float of 4
-byte length
(bytes are assumed to be 8
-bit long).
Constructor and Description |
---|
FloatConverter() |
Modifier and Type | Method and Description |
---|---|
double |
pack(omero.util.ReadOnlyByteArray data,
int offset,
int length)
Implemented as specified by
BytesConverter |
public double pack(omero.util.ReadOnlyByteArray data, int offset, int length)
BytesConverter
data
- The byte array containing the bytes to convert.offset
- The position of the first byte making up the pixel value.length
- The number of bytes that make up the pixel value.BytesConverter.pack(ReadOnlyByteArray, int, int)