/openthread-3.7.0/examples/platforms/utils/ |
D | settings_ram.c | 77 uint16_t readLength; in otPlatSettingsGet() local 90 readLength = currentBlock->length; in otPlatSettingsGet() 96 if (readLength > *aValueLength) in otPlatSettingsGet() 98 readLength = *aValueLength; in otPlatSettingsGet() 101 memcpy(aValue, &sSettingsBuf[i + sizeof(struct settingsBlock)], readLength); in otPlatSettingsGet()
|
/openthread-3.7.0/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 | 364 uint16_t readLength = (length <= *aValueLength ? length : *aValueLength); in PlatformSettingsGet() local 366 … VerifyOrExit(read(sSettingsFd, aValue, readLength) == readLength, error = OT_ERROR_PARSE); in PlatformSettingsGet()
|
/openthread-3.7.0/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-3.7.0/src/ncp/ |
D | ncp_spi.cpp | 260 uint16_t readLength; in PrepareNextSpiSendFrame() local 279 readLength = mTxFrameBuffer.OutFrameRead(frameLength, sendFrame.GetData()); in PrepareNextSpiSendFrame() 280 OT_ASSERT(readLength == frameLength); in PrepareNextSpiSendFrame() 283 OT_UNUSED_VARIABLE(readLength); in PrepareNextSpiSendFrame()
|
/openthread-3.7.0/tests/unit/ |
D | test_message.cpp | 147 uint16_t readLength; in TestMessage() local 150 readLength = message->ReadBytes(offset, readBuffer, length); in TestMessage() 152 VerifyOrQuit(readLength < length, "Message::ReadBytes() returned longer length"); in TestMessage() 153 VerifyOrQuit(readLength == kMaxSize - offset); in TestMessage() 154 VerifyOrQuit(memcmp(readBuffer, &writeBuffer[offset], readLength) == 0); in TestMessage() 155 …VerifyOrQuit(memcmp(&readBuffer[readLength], zeroBuffer, kMaxSize - readLength) == 0, "read after … in TestMessage() 158 VerifyOrQuit(message->CompareBytes(offset, readBuffer, readLength)); in TestMessage()
|
D | test_platform.cpp | 203 size_t readLength; in otPlatEntropyGet() local 208 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet() 210 if (readLength != aOutputLength) in otPlatEntropyGet()
|
/openthread-3.7.0/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-3.7.0/src/cli/ |
D | cli_commissioner.cpp | 339 uint16_t readLength; in Process() local 342 readLength = static_cast<uint16_t>(sizeof(tlvs) - length); in Process() 343 SuccessOrExit(error = aArgs->ParseAsHexString(readLength, tlvs + length)); in Process() 344 length += static_cast<uint8_t>(readLength); in Process()
|
/openthread-3.7.0/src/lib/spinel/ |
D | spinel_buffer.cpp | 653 int readLength; in OutFrameFillMessageBuffer() local 660 …readLength = otMessageRead(mReadMessage, mReadMessageOffset, mMessageBuffer, sizeof(mMessageBuffer… in OutFrameFillMessageBuffer() 662 EXPECT(readLength > 0, error = OT_ERROR_NOT_FOUND); in OutFrameFillMessageBuffer() 666 mReadMessageOffset += readLength; in OutFrameFillMessageBuffer() 668 mReadMessageTail = mMessageBuffer + readLength; in OutFrameFillMessageBuffer()
|
/openthread-3.7.0/src/core/common/ |
D | settings.cpp | 410 uint16_t readLength = aLength; in SaveEntry() local 413 …if ((Get<SettingsDriver>().Get(aKey, aPrev, &readLength) == kErrorNone) && (readLength == aLength)… in SaveEntry()
|
/openthread-3.7.0/src/core/meshcop/ |
D | dataset.cpp | 605 size_t readLength; in ReadTlvFromSecureStorage() local 610 SuccessOrExit(error = ExportKey(aKeyRef, tlv->GetValue(), tlv->GetLength(), readLength)); in ReadTlvFromSecureStorage() 611 VerifyOrExit(readLength == tlv->GetLength(), error = OT_ERROR_FAILED); in ReadTlvFromSecureStorage()
|