wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
collect.h
Go to the documentation of this file.
1#ifndef QUIC_CRECV_COLLECT_H
2#define QUIC_CRECV_COLLECT_H
3
5
11
13#define QUIC_CRECV_BUF 2048
14
21
25
33int quic_crecv_collect(quic_crecv* s, const u8* frames, usz len);
34
35#endif
int quic_crecv_collect(quic_crecv *s, const u8 *frames, usz len)
Walk a payload, write every CRYPTO frame at its offset, ignore other frames.
#define QUIC_CRECV_BUF
Reassembly buffer capacity in bytes.
Definition collect.h:13
void quic_crecv_init(quic_crecv *s)
Start with an empty reassembly buffer.
CRYPTO stream reassembly state.
Definition collect.h:16
u8 filled[QUIC_CRECV_BUF]
1 where a byte has been written
Definition collect.h:18
usz received_to
contiguous bytes available from offset 0
Definition collect.h:19
u8 buf[QUIC_CRECV_BUF]
reassembled CRYPTO stream bytes
Definition collect.h:17
x86_64 Linux direct syscalls.
u64 usz
unsigned size (size_t equivalent)
Definition syscall.h:19
unsigned char u8
unsigned 8-bit integer / byte
Definition syscall.h:17