RecvStream

The incoming half of a QUIC stream.

Functions

Link copied to clipboard
open suspend override fun bytesRead(): ULong

Total bytes read from this stream so far.

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open suspend override fun id(): String
Link copied to clipboard
open suspend override fun read(sizeLimit: UInt): ByteArray

Read up to size_limit bytes into a fresh buffer.

Link copied to clipboard
open suspend override fun readExact(size: UInt): ByteArray

Read exactly size bytes, erroring if the stream ends early.

Link copied to clipboard
open suspend override fun readToEnd(sizeLimit: UInt): ByteArray

Read until end-of-stream, with size_limit as a maximum.

Link copied to clipboard
open suspend override fun receivedReset(): ULong?
Link copied to clipboard
open suspend override fun stop(errorCode: ULong)

Stop the incoming stream with an error code.