binary-streams / loggersoft.kotlin.streams / BinaryContext

BinaryContext

@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).

Properties

contextSize

Size of serialized object (binary context) in bytes.

abstract val contextSize: Int

Functions

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