Package-level declarations

Types

Link copied to clipboard

Thrown when a received length prefix exceeds framed's maxFrameSize. The oversized allocation is never performed; the flow terminates immediately.

Properties

Link copied to clipboard

Default maximum frame size (16 MiB).

Functions

Link copied to clipboard
fun framed(source: Source, sink: Sink, maxFrameSize: Int = DEFAULT_MAX_FRAME_SIZE): Connection

Adapt a kotlinx-io Source/Sink byte-stream into a message Connection using a 4-byte big-endian length prefix per frame.