Home
last modified time | relevance | path

Searched refs:readLength (Results 1 – 12 of 12) sorted by relevance

/openthread-3.7.0/examples/platforms/utils/
Dsettings_ram.c77 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/
Dentropy.cpp99 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()
Dsettings.cpp364 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/
Dentropy.c97 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/
Dncp_spi.cpp260 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/
Dtest_message.cpp147 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()
Dtest_platform.cpp203 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/
Dflash.cpp143 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/
Dcli_commissioner.cpp339 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/
Dspinel_buffer.cpp653 int readLength; in OutFrameFillMessageBuffer() local
660readLength = 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/
Dsettings.cpp410 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/
Ddataset.cpp605 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()