Preview feature: This API is in preview. It should be considered unstable and can be subject to breaking changes.
Provide application-owned buffers to MsQuic to store received data. It should be called only for a stream in app-owned buffer mode.
typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
QUIC_STATUS
(QUIC_API * QUIC_STREAM_PROVIDE_RECEIVE_BUFFERS_FN)(
_In_ _Pre_defensive_ HQUIC Stream,
_In_ uint32_t BufferCount,
_In_reads_(BufferCount) const QUIC_BUFFER* Buffers
);
Stream
: A handle to the streamBufferCount
: The number of buffers providedBuffers
: An array ofQUIC_BUFFER
s pointing to the memory buffers
This is an asynchronous API but it can run inline if called in a callback.
If called inline when handling a QUIC_CONNECTION_EVENT_PEER_STREAM_STARTED
event, it will convert the stream to app-owned buffer mode.