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,10 @@
#include <cstring>
#include <span>
// Buffer that grows in both directions from a midpoint. Payload is appended at
// the back; each protocol layer then prepends its header in reverse order
// (UDP, then IPv4, then Ethernet) without moving payload bytes. Lets the
// network stack build outbound frames bottom-up with no copies or scratch.
template <size_t N>
class prepend_buffer {
uint8_t m_buf[N];