public class NumberArrayAdapter extends TypeAdapter<double[]>
Constructor and Description |
---|
NumberArrayAdapter() |
Modifier and Type | Method and Description |
---|---|
double[] |
deserialize(byte[] buffer,
int bufferPosition)
Deserializes data from a byte buffer, beginning at the given position.
|
int |
getSerializedSize(double[] value)
Gets the size of a byte array that would encode the given value.
|
byte[] |
serialize(double[] array)
Serializes the given data as a byte array.
|
cleanUp, getCurrentFile, getDataType, setCurrentFile
public byte[] serialize(double[] array)
Serializer
array
- the object to serializepublic double[] deserialize(byte[] buffer, int bufferPosition)
Deserializer
buffer
- the byte buffer to deserialize frombufferPosition
- the position in the buffer to start deserializing frompublic int getSerializedSize(double[] value)
Deserializer