@ExperimentalUnsignedTypes interface BinaryContext
Interface for objects which has binary representation (context) and can be serialized and deserialized through binary streams.
Author
Alexander Kornilov (akornilov.82@gmail.com).
contextSize |
Size of serialized object (binary context) in bytes. abstract val contextSize: Int |
contextLoad |
Loads object from binary stream. abstract fun contextLoad(stream: StreamInput): Int |
contextStore |
Stores object in the binary stream. abstract fun contextStore(stream: StreamOutput): Int |