Interface ISerialiser<T>
- All Known Implementing Classes:
DoubleSerialiser,ParameterValueSerialiser,StateSerializer
public interface ISerialiser<T>
Deprecated.
Superseded by EDP2.
Interface used by the BackgroundMemoryList to serialise the elements of the list into bytestreams
and vice versa. The elements serialised form has to have a constant memory footprint. Otherwise
using the BackgroundMemoryList will not work as it relies on the constant sizes to seek in the
background storage and calculate the number of elements.
-
Method Summary
Modifier and TypeMethodDescriptionT[]deserialise(byte[] bytes) Deprecated.Convert a serialised form into an array of elements of the serialiser's typelongDeprecated.byte[]Deprecated.Convert the given array of elements into their serialised form
-
Method Details
-
getElementLength
long getElementLength()Deprecated.- Returns:
- The size of each element in serialised form, e.g., for doubles it could be 8 bytes (IEEE format)
-
serialise
Deprecated.Convert the given array of elements into their serialised form- Parameters:
objects- The array of elements to serialisecount- The number of elements to serialise- Returns:
- The elements in their serialised form
-
deserialise
Deprecated.Convert a serialised form into an array of elements of the serialiser's type- Parameters:
bytes- The byte array to deserialise- Returns:
- An array of elements deserialised from the given byte array
-