LookAheadSuspendSession
interface LookAheadSuspendSession : LookAheadSession
Deprecated: Use read { } instead.
Functions
Suspend until n bytes become available or end of stream encountered (possibly due to exceptional close) |
Inherited Functions
Marks n bytes as consumed so the corresponding range becomes available for writing |
|
abstract fun request(skip: Int, atLeast: Int): ByteBuffer? Request byte buffer range skipping skip bytes and atLeast bytes length |
Extension Functions
suspend fun LookAheadSuspendSession.consumeEachRemaining( fun LookAheadSession.consumeEachRemaining( |