Home
last modified time | relevance | path

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

/openthread-latest/examples/platforms/utils/
Dsettings_ram.c76 uint16_t readLength; in otPlatSettingsGet() local
89 readLength = currentBlock->length; in otPlatSettingsGet()
95 if (readLength > *aValueLength) in otPlatSettingsGet()
97 readLength = *aValueLength; in otPlatSettingsGet()
100 memcpy(aValue, &sSettingsBuf[i + sizeof(struct settingsBlock)], readLength); in otPlatSettingsGet()
/openthread-latest/src/posix/platform/
Dentropy.cpp98 size_t readLength; in otPlatEntropyGet() local
105 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet()
106 VerifyOrExit(readLength == aOutputLength, error = OT_ERROR_FAILED); in otPlatEntropyGet()
Dsettings_file.cpp147 uint16_t readLength = (length <= *aValueLength ? length : *aValueLength); in Get() local
149 … VerifyOrExit(read(mSettingsFd, aValue, readLength) == readLength, error = OT_ERROR_PARSE); in Get()
/openthread-latest/examples/platforms/simulation/
Dentropy.c96 size_t readLength; in otPlatEntropyGet() local
103 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet()
104 otEXPECT_ACTION(readLength == aOutputLength, error = OT_ERROR_FAILED); in otPlatEntropyGet()
/openthread-latest/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()
173 uint16_t readLength = kMaxSize - offset; in TestMessage() local
176 VerifyOrQuit(memcmp(readBuffer, &writeBuffer[offset], readLength) == 0); in TestMessage()
177 … VerifyOrQuit(memcmp(&readBuffer[readLength], zeroBuffer, kMaxSize - readLength) == 0, in TestMessage()
Dtest_platform.cpp206 size_t readLength; in otPlatEntropyGet() local
211 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet()
213 if (readLength != aOutputLength) in otPlatEntropyGet()
/openthread-latest/tests/nexus/platform/
Dnexus_misc.cpp89 size_t readLength; in otPlatEntropyGet() local
94 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet()
96 if (readLength != aOutputLength) in otPlatEntropyGet()
/openthread-latest/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-latest/src/core/utils/
Dflash.cpp140 uint16_t readLength = *aValueLength; in Get() local
142 if (readLength > record.GetLength()) in Get()
144 readLength = record.GetLength(); in Get()
147 … otPlatFlashRead(&GetInstance(), mSwapIndex, offset + sizeof(record), aValue, readLength); in Get()
/openthread-latest/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-latest/src/lib/spinel/
Dspinel_buffer.cpp653 int readLength; in OutFrameFillMessageBuffer() local
660readLength = otMessageRead(mReadMessage, mReadMessageOffset, mMessageBuffer, sizeof(mMessageBuffer… in OutFrameFillMessageBuffer()
662 VerifyOrExit(readLength > 0, error = OT_ERROR_NOT_FOUND); in OutFrameFillMessageBuffer()
666 mReadMessageOffset += readLength; in OutFrameFillMessageBuffer()
668 mReadMessageTail = mMessageBuffer + readLength; in OutFrameFillMessageBuffer()
/openthread-latest/src/core/common/
Dsettings.cpp417 uint16_t readLength = aLength; in SaveEntry() local
420 …if ((Get<SettingsDriver>().Get(aKey, aPrev, &readLength) == kErrorNone) && (readLength == aLength)… in SaveEntry()
/openthread-latest/src/core/meshcop/
Dsecure_transport.cpp404 uint16_t readLength; in HandleMbedtlsReceive() local
408readLength = mReceiveMessage->ReadBytes(mReceiveMessage->GetOffset(), aBuf, static_cast<uint16_t>(… in HandleMbedtlsReceive()
409 VerifyOrExit(readLength > 0); in HandleMbedtlsReceive()
411 mReceiveMessage->MoveOffset(readLength); in HandleMbedtlsReceive()
412 rval = static_cast<int>(readLength); in HandleMbedtlsReceive()
Ddataset_manager.cpp839 size_t readLength; in ReadTlvFromSecureStorage() local
844 SuccessOrExit(error = ExportKey(aKeyRef, tlv->GetValue(), tlv->GetLength(), readLength)); in ReadTlvFromSecureStorage()
845 VerifyOrExit(readLength == tlv->GetLength(), error = OT_ERROR_FAILED); in ReadTlvFromSecureStorage()