4#ifndef PROTOCORE_HTTP_RANGE_H
5#define PROTOCORE_HTTP_RANGE_H
int protocore_http_range_http_parse_byte_range(uint8_t *work, const char *hdr, size_t size, size_t *out_start, size_t *out_end)
Parse a single-range Range: bytes=... header value against a .
#define PROTOCORE_UNUSED
Suppress the unused warning. Every module ends in a namespace most callers only partly use.
#define PROTOCORE_NS_LAYOUT(T,...)
Pin every dispatch slot of a table that is nothing but function pointers.
#define PROTOCORE_NS
Storage for a dispatch table. The const is load bearing.
Dispatch table. Addressed by offset, so the layout is asserted below.
int(* http_parse_byte_range)(uint8_t *, const char *, size_t, size_t *, size_t *)