/openthread-2.7.6/tests/unit/ |
D | test_message.cpp | 117 uint16_t readLength; in TestMessage() local 120 readLength = message->ReadBytes(offset, readBuffer, length); in TestMessage() 122 VerifyOrQuit(readLength < length, "Message::ReadBytes() returned longer length"); in TestMessage() 123 VerifyOrQuit(readLength == kMaxSize - offset); in TestMessage() 124 VerifyOrQuit(memcmp(readBuffer, &writeBuffer[offset], readLength) == 0); in TestMessage() 125 …VerifyOrQuit(memcmp(&readBuffer[readLength], zeroBuffer, kMaxSize - readLength) == 0, "read after … in TestMessage() 128 VerifyOrQuit(message->CompareBytes(offset, readBuffer, readLength)); in TestMessage()
|
D | test_platform.cpp | 387 size_t readLength; in otPlatEntropyGet() local 392 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet() 394 if (readLength != aOutputLength) in otPlatEntropyGet()
|
/openthread-2.7.6/examples/platforms/utils/ |
D | settings_ram.c | 78 uint16_t readLength; in otPlatSettingsGet() local 91 readLength = currentBlock->length; in otPlatSettingsGet() 97 if (readLength > *aValueLength) in otPlatSettingsGet() 99 readLength = *aValueLength; in otPlatSettingsGet() 102 memcpy(aValue, &sSettingsBuf[i + sizeof(struct settingsBlock)], readLength); in otPlatSettingsGet()
|
/openthread-2.7.6/src/posix/platform/ |
D | entropy.cpp | 99 size_t readLength; in otPlatEntropyGet() local 106 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet() 107 VerifyOrExit(readLength == aOutputLength, error = OT_ERROR_FAILED); in otPlatEntropyGet()
|
D | settings.cpp | 267 uint16_t readLength = (length <= *aValueLength ? length : *aValueLength); in otPlatSettingsGet() local 269 … VerifyOrExit(read(sSettingsFd, aValue, readLength) == readLength, error = OT_ERROR_PARSE); in otPlatSettingsGet()
|
/openthread-2.7.6/examples/platforms/simulation/ |
D | entropy.c | 97 size_t readLength; in otPlatEntropyGet() local 104 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet() 105 otEXPECT_ACTION(readLength == aOutputLength, error = OT_ERROR_FAILED); in otPlatEntropyGet()
|
/openthread-2.7.6/src/ncp/ |
D | ncp_spi.cpp | 261 uint16_t readLength; in PrepareNextSpiSendFrame() local 280 readLength = mTxFrameBuffer.OutFrameRead(frameLength, sendFrame.GetData()); in PrepareNextSpiSendFrame() 281 OT_ASSERT(readLength == frameLength); in PrepareNextSpiSendFrame() 284 OT_UNUSED_VARIABLE(readLength); in PrepareNextSpiSendFrame()
|
/openthread-2.7.6/src/core/utils/ |
D | flash.cpp | 143 uint16_t readLength = *aValueLength; in Get() local 145 if (readLength > record.GetLength()) in Get() 147 readLength = record.GetLength(); in Get() 150 … otPlatFlashRead(&GetInstance(), mSwapIndex, offset + sizeof(record), aValue, readLength); in Get()
|
/openthread-2.7.6/src/cli/ |
D | cli_commissioner.cpp | 195 uint16_t readLength; in ProcessMgmtGet() local 198 readLength = static_cast<uint16_t>(sizeof(tlvs) - length); in ProcessMgmtGet() 199 SuccessOrExit(error = aArgs->ParseAsHexString(readLength, tlvs + length)); in ProcessMgmtGet() 200 length += static_cast<uint8_t>(readLength); in ProcessMgmtGet()
|
/openthread-2.7.6/src/lib/spinel/ |
D | spinel_buffer.cpp | 661 int readLength; in OutFrameFillMessageBuffer() local 668 …readLength = otMessageRead(mReadMessage, mReadMessageOffset, mMessageBuffer, sizeof(mMessageBuffer… in OutFrameFillMessageBuffer() 670 VerifyOrExit(readLength > 0, error = OT_ERROR_NOT_FOUND); in OutFrameFillMessageBuffer() 674 mReadMessageOffset += readLength; in OutFrameFillMessageBuffer() 676 mReadMessageTail = mMessageBuffer + readLength; in OutFrameFillMessageBuffer()
|
/openthread-2.7.6/src/core/common/ |
D | settings.cpp | 322 uint16_t readLength = aLength; in SaveEntry() local 325 …if ((Get<SettingsDriver>().Get(aKey, aPrev, &readLength) == kErrorNone) && (readLength == aLength)… in SaveEntry()
|