Codec for the plaintext native-API framing:
Definition plaintext_frame_helper.hpp:19
FrameStatus next(std::uint32_t &out_type, ByteView &out_payload) override
Try to extract the next complete frame.
void encode(std::uint32_t msg_type, ByteView payload, ByteBuffer &out) override
Serialize a message (numeric type id + protobuf payload) to wire bytes, appending them to out.
void feed(ByteView data) override
Append freshly received bytes to the internal reassembly buffer.
static constexpr std::uint8_t indicator
Indicator byte that prefixes every plaintext frame.
Definition plaintext_frame_helper.hpp:22