Mercurial > hg > nginx-quic
diff src/event/quic/ngx_event_quic_frames.h @ 9018:3c98fa8fef6f quic
QUIC: ngx_quic_copy_buffer() function.
The function copies passed data to QUIC buffer chain and returns it.
The chain can be used in ngx_quic_frame_t data field.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 31 Jan 2023 14:12:18 +0400 |
parents | b5656025ddb5 |
children |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_frames.h +++ b/src/event/quic/ngx_event_quic_frames.h @@ -26,6 +26,8 @@ ngx_int_t ngx_quic_split_frame(ngx_conne ngx_chain_t *ngx_quic_alloc_chain(ngx_connection_t *c); void ngx_quic_free_chain(ngx_connection_t *c, ngx_chain_t *in); +ngx_chain_t *ngx_quic_copy_buffer(ngx_connection_t *c, u_char *data, + size_t len); ngx_chain_t *ngx_quic_read_buffer(ngx_connection_t *c, ngx_quic_buffer_t *qb, uint64_t limit); ngx_chain_t *ngx_quic_write_buffer(ngx_connection_t *c, ngx_quic_buffer_t *qb,