FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::codecs::FrameView Struct Reference

One complete application frame carved out of a byte stream. More...

#include <fastmm/codecs/codec.hpp>

Public Member Functions

bool complete () const noexcept
 

Public Attributes

std::span< const std::byte > payload
 
std::size_t consumed = 0
 
std::uint8_t kind = 0
 protocol-specific tag (WS opcode, SoupBin packet type, ...)
 

Detailed Description

One complete application frame carved out of a byte stream.

consumed is how many input bytes the framer used (frame + framing overhead); zero means "need more bytes".

Member Function Documentation

◆ complete()

bool fastmm::codecs::FrameView::complete ( ) const
inlinenoexcept

Member Data Documentation

◆ payload

std::span<const std::byte> fastmm::codecs::FrameView::payload

◆ consumed

std::size_t fastmm::codecs::FrameView::consumed = 0

◆ kind

std::uint8_t fastmm::codecs::FrameView::kind = 0

protocol-specific tag (WS opcode, SoupBin packet type, ...)