template <uint16_t kSize>
class FrameBuffer
Defined at line 120 of file ../../third_party/openthread/src/lib/spinel/multi_frame_buffer.hpp
Defines a template frame buffer of a given size for storing a single frame.
Template Parameters
Public Methods
void FrameBuffer<kSize> ()
Initializes the `FrameBuffer` object.
Defined at line 126 of file ../../third_party/openthread/src/lib/spinel/multi_frame_buffer.hpp
void Clear ()
Clears the buffer, moving the write pointer to the beginning of the buffer.
Defined at line 135 of file ../../third_party/openthread/src/lib/spinel/multi_frame_buffer.hpp
bool IsEmpty ()
Indicates whether the buffer is empty or contains a frame.
Defined at line 147 of file ../../third_party/openthread/src/lib/spinel/multi_frame_buffer.hpp
uint16_t GetLength ()
Gets the length (number of bytes) in the frame.
Defined at line 154 of file ../../third_party/openthread/src/lib/spinel/multi_frame_buffer.hpp
uint8_t * GetFrame ()
Gets a pointer to start of the frame.
Defined at line 161 of file ../../third_party/openthread/src/lib/spinel/multi_frame_buffer.hpp