141#ifndef __FPSDK_COMMON_PARSER_HPP__
142#define __FPSDK_COMMON_PARSER_HPP__
186 bool Add(
const uint8_t* data,
const std::size_t size);
195 bool Add(
const std::vector<uint8_t>& data);
bool Flush(ParserMsg &msg)
Get remaining data from parser as OTHER message(s)
void Reset()
Reset parser.
ParserStats GetStats() const
Get parser statistics.
bool Add(const std::vector< uint8_t > &data)
Add data to parser.
bool Process(ParserMsg &msg)
Process data in parser, return message.
bool Add(const uint8_t *data, const std::size_t size)
Add data to parser.
Parser()
Constructor, initialises parser and makes it ready to accept data and emit messages.
Protocol
Protocols (message types), see also Protocol and message naming.
static constexpr std::size_t MAX_ADD_SIZE
Max size for Parser::Add() that is guaranteed to work.
static constexpr std::size_t MAX_ANY_SIZE
The largest of the above.
Message frame output by the Parser.