Home
last modified time | relevance | path

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

/openthread-3.4.0/tests/unit/
Dtest_message.cpp227 for (uint16_t srcOffset = 0; srcOffset < kMaxSize; srcOffset += kOffsetStep) in TestMessage() local
231 for (uint16_t length = 0; length <= kMaxSize - srcOffset; length += kLengthStep) in TestMessage()
236 SuccessOrQuit(message2->AppendBytesFromMessage(*message, srcOffset, length)); in TestMessage()
238 VerifyOrQuit(message2->CompareBytes(dstOffset, *message, srcOffset, length)); in TestMessage()
241 … VerifyOrQuit(message2->AppendBytesFromMessage(*message, srcOffset, kMaxSize - srcOffset + 1) == in TestMessage()
248 for (uint16_t srcOffset = 0; srcOffset < kMaxSize; srcOffset += kOffsetStep) in TestMessage() local
252 for (uint16_t length = 0; length <= kMaxSize - srcOffset; length++) in TestMessage()
257 SuccessOrQuit(message->AppendBytesFromMessage(*message, srcOffset, length)); in TestMessage()
259 VerifyOrQuit(message->CompareBytes(size, *message, srcOffset, length)); in TestMessage()
/openthread-3.4.0/src/core/utils/
Dflash.cpp234 for (uint32_t srcOffset = kSwapMarkerSize; srcOffset < mSwapUsed; srcOffset += record.GetSize()) in Swap() local
236 otPlatFlashRead(&GetInstance(), mSwapIndex, srcOffset, &record, sizeof(RecordHeader)); in Swap()
240 … if (!record.IsValid() || DoesValidRecordExist(srcOffset + record.GetSize(), record.GetKey())) in Swap()
245 otPlatFlashRead(&GetInstance(), mSwapIndex, srcOffset, &record, record.GetSize()); in Swap()