/openthread-3.4.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.4.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.4.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.4.0/tests/unit/ |
D | test_message.cpp | 120 uint16_t readLength; in TestMessage() local 123 readLength = message->ReadBytes(offset, readBuffer, length); in TestMessage() 125 VerifyOrQuit(readLength < length, "Message::ReadBytes() returned longer length"); in TestMessage() 126 VerifyOrQuit(readLength == kMaxSize - offset); in TestMessage() 127 VerifyOrQuit(memcmp(readBuffer, &writeBuffer[offset], readLength) == 0); in TestMessage() 128 …VerifyOrQuit(memcmp(&readBuffer[readLength], zeroBuffer, kMaxSize - readLength) == 0, "read after … in TestMessage() 131 VerifyOrQuit(message->CompareBytes(offset, readBuffer, readLength)); in TestMessage()
|
D | test_platform.cpp | 178 size_t readLength; in otPlatEntropyGet() local 183 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet() 185 if (readLength != aOutputLength) in otPlatEntropyGet()
|
/openthread-3.4.0/src/ncp/ |
D | ncp_spi.cpp | 258 uint16_t readLength; in PrepareNextSpiSendFrame() local 277 readLength = mTxFrameBuffer.OutFrameRead(frameLength, sendFrame.GetData()); in PrepareNextSpiSendFrame() 278 OT_ASSERT(readLength == frameLength); in PrepareNextSpiSendFrame() 281 OT_UNUSED_VARIABLE(readLength); in PrepareNextSpiSendFrame()
|
/openthread-3.4.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.4.0/src/cli/ |
D | cli_commissioner.cpp | 223 uint16_t readLength; in Process() local 226 readLength = static_cast<uint16_t>(sizeof(tlvs) - length); in Process() 227 SuccessOrExit(error = aArgs->ParseAsHexString(readLength, tlvs + length)); in Process() 228 length += static_cast<uint8_t>(readLength); in Process()
|
/openthread-3.4.0/src/lib/spinel/ |
D | spinel_buffer.cpp | 652 int readLength; in OutFrameFillMessageBuffer() local 659 …readLength = otMessageRead(mReadMessage, mReadMessageOffset, mMessageBuffer, sizeof(mMessageBuffer… in OutFrameFillMessageBuffer() 661 VerifyOrExit(readLength > 0, error = OT_ERROR_NOT_FOUND); in OutFrameFillMessageBuffer() 665 mReadMessageOffset += readLength; in OutFrameFillMessageBuffer() 667 mReadMessageTail = mMessageBuffer + readLength; in OutFrameFillMessageBuffer()
|
/openthread-3.4.0/src/core/common/ |
D | settings.cpp | 420 uint16_t readLength = aLength; in SaveEntry() local 423 …if ((Get<SettingsDriver>().Get(aKey, aPrev, &readLength) == kErrorNone) && (readLength == aLength)… in SaveEntry()
|