template <uint16_t kSize>

class FrameBuffer

Defined at line 119 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

kSize The size of the frame buffer.

Public Methods

void FrameBuffer<kSize> ()

Initializes the `FrameBuffer` object.

Defined at line 125 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 134 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 146 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 153 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 160 of file ../../third_party/openthread/src/lib/spinel/multi_frame_buffer.hpp