RpcBinaryData
Transport-agnostic binary data source. Implementations adapt user-facing types (ByteReadChannel, kotlinx.io.Source, okio.BufferedSource, ...) to a shape the ksrpc wire protocol can consume.
Source-oriented only: in ksrpc the binary payload is always "something the receiver reads from," regardless of which side is sending.
Inheritors
Properties
Functions
Link copied to clipboard
Drain this source into a single ByteArray. Default implementation accumulates transferTo chunks; subclasses that already hold the data in memory should override this to return it directly.
Link copied to clipboard