PeekResult

sealed interface PeekResult

Result of peeking a frame size from a StreamProcessor.

Default NoFraming means a codec at a framing boundary that wasn't taught to peek will throw at startup instead of silently hanging the streaming loop.

Inheritors

Types

Link copied to clipboard
value class Complete(val bytes: Int) : PeekResult

A complete frame is available; bytes is its total size.

Link copied to clipboard

More bytes are required before a frame size can be determined.

Link copied to clipboard
data object NoFraming : PeekResult

This codec does not participate in frame detection.