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