Read the next chunk of data with the provided maximum size.
Returns null if there's nothing more to read (the stream is closed).
Read some data into the provided buffer.
Returns the number of bytes read, or null if the stream is closed.
Make sure to differentiate between 0 and null.
Send a STOP_SENDING QUIC code.
A handle to a QUIC receive stream.
It's important to never call methods on this object concurrently, ie not to do two reads, or to call
stop()while reading the stream in an overlapping async context. The stream has an internal mutex (lock), and overlapping accesses will introduce undesirable contention.