CallData

sealed class CallData<T>

Wrapper around data being serialized through calls. Could be a reference to a string for a serialized object or to binary data.

Inheritors

Types

Link copied to clipboard
data class Binary<T>(value: ByteReadChannel) : CallData<T>
Link copied to clipboard
object Companion
Link copied to clipboard
data class Serialized<T>(value: T) : CallData<T>

Properties

Link copied to clipboard
abstract val isBinary: Boolean

Functions

Link copied to clipboard
abstract fun readBinary(): ByteReadChannel

Get the ByteReadChannel for the binary data held by this call.. If this is not binary data then throws IllegalStateException.

Link copied to clipboard
abstract fun readSerialized(): T

Read the serialized content of this object. If this is not a string then throws IllegalStateException.