Home
last modified time | relevance | path

Searched refs:AppendBytes (Results 1 – 25 of 36) sorted by relevance

12

/openthread-3.4.0/src/core/common/
Dappender.cpp51 Error Appender::AppendBytes(const void *aBuffer, uint16_t aLength) in AppendBytes() function in ot::Appender
58 error = mShared.mMessage.mMessage->AppendBytes(aBuffer, aLength); in AppendBytes()
62 error = mShared.mFrameBuilder.AppendBytes(aBuffer, aLength); in AppendBytes()
Dappender.hpp107 Error AppendBytes(const void *aBuffer, uint16_t aLength);
124 return AppendBytes(&aObject, sizeof(ObjectType)); in Append()
Dframe_builder.hpp184 Error AppendBytes(const void *aBuffer, uint16_t aLength);
228 return AppendBytes(&aObject, sizeof(ObjectType)); in Append()
Dheap_data.hpp160 …Error CopyBytesTo(Message &aMessage) const { return aMessage.AppendBytes(mData.GetBytes(), mData.G… in CopyBytesTo()
Dtlvs.cpp57 Error Tlv::AppendTo(Message &aMessage) const { return aMessage.AppendBytes(this, static_cast<uint16… in AppendTo()
307 error = aMessage.AppendBytes(aValue, aLength); in AppendTlv()
Dframe_builder.cpp77 Error FrameBuilder::AppendBytes(const void *aBuffer, uint16_t aLength) in AppendBytes() function in ot::FrameBuilder
Dmessage.hpp665 Error AppendBytes(const void *aBuf, uint16_t aLength);
700 return AppendBytes(&aObject, sizeof(ObjectType)); in Append()
718 return AppendBytes(aData.GetBytes(), aData.GetLength()); in AppendData()
/openthread-3.4.0/tests/unit/
Dtest_message.cpp234 SuccessOrQuit(message2->AppendBytes(zeroBuffer, dstOffset)); in TestMessage()
273 SuccessOrQuit(message->AppendBytes(writeBuffer, kMaxSize)); in TestMessage()
294 SuccessOrQuit(message->AppendBytes(writeBuffer, kMaxSize)); in TestMessage()
342 SuccessOrQuit(bufAppender.AppendBytes(kData1, sizeof(kData1))); in TestAppender()
349 SuccessOrQuit(bufAppender.AppendBytes(kData2, sizeof(kData2))); in TestAppender()
360 SuccessOrQuit(bufAppender.AppendBytes(kData1, sizeof(kData1))); in TestAppender()
385 SuccessOrQuit(msgAppender.AppendBytes(kData1, sizeof(kData1))); in TestAppender()
391 SuccessOrQuit(msgAppender.AppendBytes(kData2, sizeof(kData2))); in TestAppender()
Dtest_hmac_sha256.cpp119 …SuccessOrQuit(message->AppendBytes(testCase.mData, static_cast<uint16_t>(strlen(testCase.mData)))); in TestSha256()
262 SuccessOrQuit(message->AppendBytes(testCase.mData, testCase.mDataLength)); in TestHmacSha256()
Dtest_nat64.cpp102 SuccessOrQuit(msg->AppendBytes(aIp6Message, N)); in TestCase6To4()
129 SuccessOrQuit(msg->AppendBytes(aIp4Message, N)); in TestCase4To6()
Dtest_aes.cpp152 SuccessOrQuit(message->AppendBytes(test, kHeaderLength + kPayloadLength)); in TestMacCommandFrame()
Dtest_frame_builder.cpp133 SuccessOrQuit(frameBuilder.AppendBytes(zeroBuffer, sizeof(kData2))); in TestFrameBuilder()
Dtest_lowpan.cpp85 SuccessOrQuit(aMessage.AppendBytes(mExtHeader.mData, mExtHeader.mLength)); in GetUncompressedStream()
98 SuccessOrQuit(aMessage.AppendBytes(mPayload.mData, mPayload.mLength)); in GetUncompressedStream()
130 SuccessOrQuit(message->AppendBytes(mockNetworkData, sizeof(mockNetworkData))); in Init()
205 SuccessOrQuit(compressedMsg->AppendBytes(result, compressBytes)); in Test()
Dtest_checksum.cpp435 SuccessOrQuit(message->AppendBytes(kExampleIcmpMessage, sizeof(kExampleIcmpMessage))); in TestIcmp4MessageChecksum()
/openthread-3.4.0/src/core/thread/
Dlowpan.cpp179 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 13, 3)); in CompressMulticast()
186 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 11, 5)); in CompressMulticast()
197 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 1, 2)); in CompressMulticast()
198 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 12, 4)); in CompressMulticast()
297 SuccessOrExit(error = aFrameBuilder.AppendBytes(ip6HeaderBytes + 2, 2)); in Compress()
304 SuccessOrExit(error = aFrameBuilder.AppendBytes(ip6HeaderBytes + 2, 2)); in Compress()
544 …SuccessOrExit(error = aFrameBuilder.AppendBytes(&udpHeader, Ip6::Udp::Header::kLengthFieldOffset)); in CompressUdp()
863 SuccessOrExit(aMessage.AppendBytes(hdr, sizeof(hdr))); in DecompressExtensionHeader()
867 SuccessOrExit(aMessage.AppendBytes(aFrameData.GetBytes(), len)); in DecompressExtensionHeader()
877 SuccessOrExit(aMessage.AppendBytes(&padOption, padOption.GetSize())); in DecompressExtensionHeader()
[all …]
Dnetwork_data_notifier.cpp203 … SuccessOrExit(error = message->AppendBytes(aNetworkData->GetBytes(), aNetworkData->GetLength())); in SendServerDataNotification()
Dmlr_manager.cpp403 SuccessOrExit(error = message->AppendBytes(aAddresses, sizeof(Ip6::Address) * aAddressNum)); in SendMulticastListenerRegistrationMessage()
/openthread-3.4.0/src/core/meshcop/
Ddataset_manager.cpp274 SuccessOrExit(error = message->AppendBytes(dataset.GetBytes(), dataset.GetSize())); in SendSet()
451 error = aMessage.AppendBytes(dataset.GetBytes(), dataset.GetSize()); in AppendDatasetToMessage()
502 SuccessOrExit(error = message->AppendBytes(aTlvs, aLength)); in SendSetRequest()
603 SuccessOrExit(error = message->AppendBytes(datasetTlvs, length)); in SendGetRequest()
608 SuccessOrExit(error = message->AppendBytes(aTlvTypes, aLength)); in SendGetRequest()
Dcommissioner.cpp691 SuccessOrExit(error = message->AppendBytes(aTlvs, aLength)); in SendMgmtCommissionerGetRequest()
760 SuccessOrExit(error = message->AppendBytes(aTlvs, aLength)); in SendMgmtCommissionerSetRequest()
/openthread-3.4.0/src/core/net/
Ddns_types.cpp162 error = aMessage.AppendBytes(aLabel, aLength); in AppendLabel()
1011 error = aAppender.AppendBytes(mValue, mValueLength); in AppendTo()
1023 error = aAppender.AppendBytes(mKey, keyLength); in AppendTo()
1032 SuccessOrExit(error = aAppender.AppendBytes(mKey, keyLength)); in AppendTo()
1034 error = aAppender.AppendBytes(mValue, mValueLength); in AppendTo()
Dicmp6.cpp203 SuccessOrExit(error = replyMessage->AppendBytes(&icmp6Header, Header::kDataFieldOffset)); in HandleEchoRequest()
/openthread-3.4.0/src/core/api/
Dmessage_api.cpp73 return AsCoreType(aMessage).AppendBytes(aBuf, aLength); in otMessageAppend()
/openthread-3.4.0/src/core/coap/
Dcoap_secure.cpp184 SuccessOrExit(message->AppendBytes(aBuf, aLength)); in HandleDtlsReceive()
Dcoap_message.cpp169 SuccessOrExit(error = AppendBytes(header, headerLength)); in AppendOption()
170 SuccessOrExit(error = AppendBytes(aValue, aLength)); in AppendOption()
Dcoap.cpp234 SuccessOrExit(error = aMessage.AppendBytes(buf, bufLen)); in SendMessage()
256 SuccessOrExit(error = aMessage.AppendBytes(buf, bufLen)); in SendMessage()
716 SuccessOrExit(error = request->AppendBytes(buf, bufLen)); in SendNextBlock1Request()
960 SuccessOrExit(error = response->AppendBytes(buf, bufLen)); in ProcessBlock2Request()

12