InputWindowWriter class
Encodes one window into a caller-provided buffer of InputWindowCodec::MaxPayloadBytes, one frame at a time, so the sender never has to materialize the whole window.
Constructors, destructors, conversion operators
- InputWindowWriter(uint8_t* buffer, const NetInputFrame& base)
Public functions
- void Append(const NetInputFrame& frame)
- Append the next frame of the window, delta-encoded against the previous one.
- auto Finish() -> size_t
- Patch the frame count into the header and return the encoded size in bytes.
- auto GetLastFrame() const -> uint32_t