Value-type views that fold the SDK's recurring argument shapes into single parameters,...
Read-only view of a byte range.
Definition span.h:30
u64 usz
unsigned size (size_t equivalent)
Definition types.h:20
unsigned char u8
unsigned 8-bit integer / byte
Definition types.h:18
unsigned long u64
unsigned 64-bit integer
Definition types.h:13
int wired_wtwire_push_parse(wired_span msg, wired_span *name, wired_span *content)
Parse a "PUSH <name>\n<content>" message.
usz wired_wtwire_signal_put(u8 *buf, usz cap, int bidi, u64 session_id)
Write the uni (bidi=0) / bidi (bidi=1) stream signal prefix into buf.
usz wired_wtwire_get_put(u8 *buf, usz cap, wired_span filename)
Write "GET <filename>" (no trailing newline) into buf.
int wired_wtwire_get_parse(wired_span line, wired_span *file)
Parse a "GET <filename>" line.
usz wtwire_qsid_put(u8 *buf, usz cap, u64 session_id)
Write the datagram quarter-stream-ID prefix varint(session_id / 4).
wired_span wired_wtwire_basename(wired_span path)
View of the path component after the last '/'; the whole path if it has no '/'.
usz wired_wtwire_push_head_put(u8 *buf, usz cap, wired_span basename)
Write the push header "PUSH <basename>\n" into buf.
usz wired_wtwire_qsid_take(wired_span dg, u64 *session_id)
Read the quarter-stream-ID varint at the head of a datagram.