wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
quic_span Struct Reference

Read-only view of a byte range. More...

#include <span.h>

Data Fields

const u8p
 first byte of the viewed range (not owned)
usz n
 number of readable bytes at p

Detailed Description

Read-only view of a byte range.

Wraps a (const u8 *, length) pair by value. Construct with quic_span_of(); pass an empty input as quic_span_of(0, 0) (also written {0, 0}). The pointed-to bytes are borrowed, never copied.


The documentation for this struct was generated from the following file: