Home
last modified time | relevance | path

Searched refs:frameBuffer (Results 1 – 2 of 2) sorted by relevance

/openthread-3.4.0/tests/unit/
Dtest_hdlc.cpp78 Hdlc::FrameBuffer<kBufferSize> frameBuffer; in TestHdlcFrameBuffer() local
82 VerifyOrQuit(frameBuffer.IsEmpty(), "after constructor"); in TestHdlcFrameBuffer()
83 VerifyOrQuit(frameBuffer.GetLength() == 0, "after constructor"); in TestHdlcFrameBuffer()
85 SuccessOrQuit(WriteToBuffer(sOpenThreadText, frameBuffer)); in TestHdlcFrameBuffer()
87 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sOpenThreadText) - 1); in TestHdlcFrameBuffer()
88 VerifyOrQuit(memcmp(frameBuffer.GetFrame(), sOpenThreadText, frameBuffer.GetLength()) == 0); in TestHdlcFrameBuffer()
90 VerifyOrQuit(frameBuffer.CanWrite(1)); in TestHdlcFrameBuffer()
91 VerifyOrQuit(!frameBuffer.IsEmpty()); in TestHdlcFrameBuffer()
93 SuccessOrQuit(WriteToBuffer(sHelloText, frameBuffer)); in TestHdlcFrameBuffer()
94 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sOpenThreadText) + sizeof(sHelloText) - 2); in TestHdlcFrameBuffer()
[all …]
/openthread-3.4.0/src/core/net/
Dip6.cpp1586 uint8_t frameBuffer[kReadLength]; in DecompressFrom() local
1590 frameLength = aMessage.ReadBytes(aOffset, frameBuffer, sizeof(frameBuffer)); in DecompressFrom()
1591 frameData.Init(frameBuffer, frameLength); in DecompressFrom()