LookAheadSession

interface LookAheadSession

Functions

Link copied to clipboard
abstract fun consumed(n: Int)

Marks n bytes as consumed so the corresponding range becomes available for writing

Link copied to clipboard
abstract fun request(skip: Int, atLeast: Int): ByteBuffer?

Request byte buffer range skipping skip bytes and atLeast bytes length

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
inline fun LookAheadSession.consumeEachRemaining(visitor: (ByteBuffer) -> Boolean)