1#ifndef QPACKDYN_ENC_STREAM_H
2#define QPACKDYN_ENC_STREAM_H
4#include "app/qpack/qpack/dyntable.h"
23#define QDYN_ENCRX_CAP 49152
RFC 9204 4.2 / RFC 9000 2.2: the peer's encoder stream reassembled from stream offset 0,...
Definition enc_stream.h:31
usz hi
buf/have bytes past the last received one are all unused
Definition enc_stream.h:36
usz type_len
the type varint's length (RFC 9000 16 allows a non-minimal one) once stream_id is known to be the enc...
Definition enc_stream.h:42
u8 buf[QDYN_ENCRX_CAP]
received bytes from stream offset base
Definition enc_stream.h:32
u8 have[QDYN_ENCRX_CAP/8]
bit i (have[i / 8] >> i % 8) set where buf[i] holds a received byte
Definition enc_stream.h:34
u64 base
stream offset of buf[0]; everything below is consumed
Definition enc_stream.h:35
u64 stream_id
the candidate or claimed encoder stream (0: none – never a client uni id)
Definition enc_stream.h:39
RFC 9204 3.2.
Definition dyntable.h:31
Read-only view of a byte range.
Definition span.h:30
u64 usz
unsigned size (size_t equivalent)
Definition types.h:20
unsigned short u16
unsigned 16-bit integer
Definition types.h:17
unsigned char u8
unsigned 8-bit integer / byte
Definition types.h:18
unsigned long u64
unsigned 64-bit integer
Definition types.h:13