Class StreamPageParser

Class Documentation

class StreamPageParser

Given a sequence of bytes, accumulates bytes into a buffer until the buffer contains a GSOF packet. Intended for use with streaming input.

Public Types

using GsofPageFoundCallback = std::function<void(const std::vector<std::byte>&)>

Public Functions

StreamPageParser()
void registerGsofPageFoundCallback(GsofPageFoundCallback callback)
void readSome(const std::uint8_t *data, std::size_t length)