ByteReadChannelTransformer

Compiler-plugin target for ByteReadChannel parameters. Adapts ktor's ByteReadChannel onto the transport-agnostic RpcBinaryData surface used by ksrpc-core's BinaryTransformer.

The compiler plugin emits this transformer for ByteReadChannel service signatures; users opt in to ktor-io binary support by adding ksrpc-binary-ktor to their compile classpath (the ktor transports already do so transitively).

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun <T> transform(input: ByteReadChannel, channel: SerializedService<T>): CallData<T>
Link copied to clipboard
open fun <S> unpackError(data: CallData<S>, channel: SerializedService<S>)
Link copied to clipboard
open suspend override fun <T> untransform(data: CallData<T>, channel: SerializedService<T>): ByteReadChannel