Home
last modified time | relevance | path

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

/openthread-2.7.6/tests/unit/
Dtest_message.cpp117 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()
Dtest_platform.cpp387 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/
Dsettings_ram.c78 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/
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.cpp267 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/
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-2.7.6/src/ncp/
Dncp_spi.cpp261 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/
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-2.7.6/src/cli/
Dcli_commissioner.cpp195 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/
Dspinel_buffer.cpp661 int readLength; in OutFrameFillMessageBuffer() local
668readLength = 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/
Dsettings.cpp322 uint16_t readLength = aLength; in SaveEntry() local
325 …if ((Get<SettingsDriver>().Get(aKey, aPrev, &readLength) == kErrorNone) && (readLength == aLength)… in SaveEntry()