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

@@ -3,6 +3,9 @@
#include <cstdint>
#include <span>
// Bounds-checked sequential reader for byte streams. consume<T>() returns a
// typed pointer into the underlying buffer or nullptr on underflow. Used to
// walk packet headers in order without UB and without copies.
class parse_buffer {
const uint8_t* m_data;
size_t m_remaining;