Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1023 Bytes

StreamProvideReceiveBuffers.md

File metadata and controls

36 lines (26 loc) · 1023 Bytes

StreamProvideReceiveBuffers function

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.

Syntax

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
    );

Parameters

  • Stream: A handle to the stream
  • BufferCount: The number of buffers provided
  • Buffers: An array of QUIC_BUFFERs pointing to the memory buffers

Remarks

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.

See also

Streams
StreamOpen