Home
last modified time | relevance | path

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

/openthread-3.7.0/tests/unit/
Dtest_hdlc.cpp79 Spinel::FrameBuffer<kBufferSize> frameBuffer; in TestHdlcFrameBuffer() local
83 VerifyOrQuit(frameBuffer.IsEmpty(), "after constructor"); in TestHdlcFrameBuffer()
84 VerifyOrQuit(frameBuffer.GetLength() == 0, "after constructor"); in TestHdlcFrameBuffer()
86 SuccessOrQuit(WriteToBuffer(sOpenThreadText, frameBuffer)); in TestHdlcFrameBuffer()
88 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sOpenThreadText) - 1); in TestHdlcFrameBuffer()
89 VerifyOrQuit(memcmp(frameBuffer.GetFrame(), sOpenThreadText, frameBuffer.GetLength()) == 0); in TestHdlcFrameBuffer()
91 VerifyOrQuit(frameBuffer.CanWrite(1)); in TestHdlcFrameBuffer()
92 VerifyOrQuit(!frameBuffer.IsEmpty()); in TestHdlcFrameBuffer()
94 SuccessOrQuit(WriteToBuffer(sHelloText, frameBuffer)); in TestHdlcFrameBuffer()
95 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sOpenThreadText) + sizeof(sHelloText) - 2); in TestHdlcFrameBuffer()
[all …]
/openthread-3.7.0/src/core/net/
Dip6.cpp1562 uint8_t frameBuffer[kReadLength]; in DecompressFrom() local
1566 frameLength = aMessage.ReadBytes(aOffset, frameBuffer, sizeof(frameBuffer)); in DecompressFrom()
1567 frameData.Init(frameBuffer, frameLength); in DecompressFrom()