add header doc comments to non-obvious util data structures

This commit is contained in:
Ian Gulliver
2026-05-01 10:47:08 -07:00
parent 1e97058b9b
commit b565a5de4c
7 changed files with 22 additions and 0 deletions

View File

@@ -4,6 +4,9 @@
#include <cstring>
#include <span>
// Bounded writer over a caller-owned byte buffer. Tracks fill level and a
// sticky overflow flag so packing code can write blindly and check once at the
// end. Unlike std::span, it has a size cursor that grows toward capacity.
class span_writer {
uint8_t *m_data;
size_t m_capacity;