Skip to content

Class espos_voice::EventDecoder

ClassList > espos_voice > EventDecoder

  • #include <espos_voice/protocol/framing.h>

Public Types

Type Name
typedef bool(*)(void *ctx, const DecodedEvent &ev) EventFn

Public Static Attributes

Type Name
constexpr size_t kMaxDataBytes = 64 \* 1024
constexpr size_t kMaxHeaderBytes = 8 \* 1024
constexpr size_t kMaxPayloadBytes = size\_t{2} \* 1024 \* 1024 \* 1024

Public Functions

Type Name
bool failed () const
bool feed (const uint8_t * chunk, size_t len, EventFn on_event, void * ctx)

Public Types Documentation

typedef EventFn

using espos_voice::EventDecoder::EventFn =  bool (*)(void* ctx, const DecodedEvent& ev);

Public Static Attributes Documentation

variable kMaxDataBytes

constexpr size_t espos_voice::EventDecoder::kMaxDataBytes;

variable kMaxHeaderBytes

constexpr size_t espos_voice::EventDecoder::kMaxHeaderBytes;

variable kMaxPayloadBytes

constexpr size_t espos_voice::EventDecoder::kMaxPayloadBytes;

Public Functions Documentation

function failed

inline bool espos_voice::EventDecoder::failed () const

function feed

bool espos_voice::EventDecoder::feed (
    const uint8_t * chunk,
    size_t len,
    EventFn on_event,
    void * ctx
) 


The documentation for this class was generated from the following file espos_voice/include/espos_voice/protocol/framing.h