Pigweed
 
Loading...
Searching...
No Matches
pw::hdlc::DecoderBuffer< kSizeBytes > Class Template Reference
Inheritance diagram for pw::hdlc::DecoderBuffer< kSizeBytes >:
pw::hdlc::Decoder

Public Member Functions

 DecoderBuffer (DecoderBuffer &&)=delete
 
DecoderBufferoperator= (DecoderBuffer &&)=delete
 
- Public Member Functions inherited from pw::hdlc::Decoder
constexpr Decoder (ByteSpan buffer)
 
 Decoder (const Decoder &)=delete
 
Decoderoperator= (const Decoder &)=delete
 
 Decoder (Decoder &&)=default
 
Decoderoperator= (Decoder &&)=default
 
Result< FrameProcess (std::byte new_byte)
 Parses a single byte of an HDLC stream.
 
template<typename F , typename... Args>
void Process (ConstByteSpan data, F &&callback, Args &&... args)
 Processes a span of data and calls the provided callback with each frame or error.
 
size_t max_size () const
 
void Clear ()
 

Static Public Member Functions

static constexpr size_t max_size ()
 
- Static Public Member Functions inherited from pw::hdlc::Decoder
static constexpr size_t RequiredBufferSizeForFrameSize (size_t max_frame_size)
 

Constructor & Destructor Documentation

◆ DecoderBuffer()

template<size_t kSizeBytes>
pw::hdlc::DecoderBuffer< kSizeBytes >::DecoderBuffer ( DecoderBuffer< kSizeBytes > &&  )
delete

DecoderBuffer is not movable, as the decoder stores pointers into the frame buffer.

Member Function Documentation

◆ operator=()

template<size_t kSizeBytes>
DecoderBuffer & pw::hdlc::DecoderBuffer< kSizeBytes >::operator= ( DecoderBuffer< kSizeBytes > &&  )
delete

DecoderBuffer is not movable, as the decoder stores pointers into the frame buffer.


The documentation for this class was generated from the following file: