summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_frames.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2023-01-31 14:12:18 +0400
committerRoman Arutyunyan <arut@nginx.com>2023-01-31 14:12:18 +0400
commit341c21c9f6373ceeb0ad2513e14c5cd97e958b28 (patch)
treef2a7369f0f992f1ba534e9a399c68503f252c5ed /src/event/quic/ngx_event_quic_frames.h
parentc3edcc17b6843bbfeb61f2dc7c51115b6a4272b0 (diff)
downloadnginx-341c21c9f6373ceeb0ad2513e14c5cd97e958b28.tar.gz
nginx-341c21c9f6373ceeb0ad2513e14c5cd97e958b28.tar.bz2
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.
Diffstat (limited to 'src/event/quic/ngx_event_quic_frames.h')
-rw-r--r--src/event/quic/ngx_event_quic_frames.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_frames.h b/src/event/quic/ngx_event_quic_frames.h
index fbff68e5d..2d55af9de 100644
--- 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_connection_t *c, ngx_quic_frame_t *f,
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,