Syntax
class FrameBuffer : public FrameWritePointer
{
public:
FrameBuffer(void)
: FrameWritePointer()
{
Clear();
}
void Clear(void)
{
mWritePointer = mBuffer;
mRemainingLength = sizeof(mBuffer);
}
bool IsEmpty(void) const { return (mWritePointer == mBuffer); }
uint16_t GetLength(void) const { return static_cast<uint16_t>(mWritePointer - mBuffer); }
uint8_t *GetFrame(void) { return mBuffer; }
private:
uint8_t mBuffer[kSize];
};