Home
last modified time | relevance | path

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

12

/openthread-latest/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.hpp101 Error AppendBytes(const void *aBuffer, uint16_t aLength);
117 return AppendBytes(&aObject, sizeof(ObjectType)); in Append()
Dframe_builder.hpp170 Error AppendBytes(const void *aBuffer, uint16_t aLength);
211 return AppendBytes(&aObject, sizeof(ObjectType)); in Append()
Dheap_data.hpp148 …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()
292 error = aMessage.AppendBytes(aValue, aLength); in AppendTlv()
Dframe_builder.cpp71 Error FrameBuilder::AppendBytes(const void *aBuffer, uint16_t aLength) in AppendBytes() function in ot::FrameBuilder
Dmessage.hpp738 Error AppendBytes(const void *aBuf, uint16_t aLength);
783 return AppendBytes(&aObject, sizeof(ObjectType)); in Append()
800 return AppendBytes(aData.GetBytes(), aData.GetLength()); in AppendData()
/openthread-latest/tests/unit/
Dtest_message.cpp287 SuccessOrQuit(message2->AppendBytes(zeroBuffer, dstOffset)); in TestMessage()
326 SuccessOrQuit(message->AppendBytes(writeBuffer, kMaxSize)); in TestMessage()
347 SuccessOrQuit(message->AppendBytes(writeBuffer, kMaxSize)); in TestMessage()
395 SuccessOrQuit(bufAppender.AppendBytes(kData1, sizeof(kData1))); in TestAppender()
402 SuccessOrQuit(bufAppender.AppendBytes(kData2, sizeof(kData2))); in TestAppender()
413 SuccessOrQuit(bufAppender.AppendBytes(kData1, sizeof(kData1))); in TestAppender()
438 SuccessOrQuit(msgAppender.AppendBytes(kData1, sizeof(kData1))); in TestAppender()
444 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.cpp103 SuccessOrQuit(msg->AppendBytes(aIp6Message, N)); in TestCase6To4()
130 SuccessOrQuit(msg->AppendBytes(aIp4Message, N)); in TestCase4To6()
Dtest_aes.cpp154 SuccessOrQuit(message->AppendBytes(test, kHeaderLength + kPayloadLength)); in TestMacCommandFrame()
Dtest_frame_builder.cpp133 SuccessOrQuit(frameBuilder.AppendBytes(zeroBuffer, sizeof(kData2))); in TestFrameBuilder()
Dtest_lowpan.cpp83 SuccessOrQuit(aMessage.AppendBytes(mExtHeader.mData, mExtHeader.mLength)); in GetUncompressedStream()
96 SuccessOrQuit(aMessage.AppendBytes(mPayload.mData, mPayload.mLength)); in GetUncompressedStream()
128 SuccessOrQuit(message->AppendBytes(mockNetworkData, sizeof(mockNetworkData))); in Init()
205 SuccessOrQuit(compressedMsg->AppendBytes(result, compressBytes)); in Test()
/openthread-latest/src/core/thread/
Dlowpan.cpp168 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 13, 3)); in CompressMulticast()
175 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 11, 5)); in CompressMulticast()
186 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 1, 2)); in CompressMulticast()
187 SuccessOrExit(error = aFrameBuilder.AppendBytes(aIpAddr.mFields.m8 + 12, 4)); in CompressMulticast()
286 SuccessOrExit(error = aFrameBuilder.AppendBytes(ip6HeaderBytes + 2, 2)); in Compress()
293 SuccessOrExit(error = aFrameBuilder.AppendBytes(ip6HeaderBytes + 2, 2)); in Compress()
534 …SuccessOrExit(error = aFrameBuilder.AppendBytes(&udpHeader, Ip6::Udp::Header::kLengthFieldOffset)); in CompressUdp()
853 SuccessOrExit(aMessage.AppendBytes(hdr, sizeof(hdr))); in DecompressExtensionHeader()
857 SuccessOrExit(aMessage.AppendBytes(aFrameData.GetBytes(), len)); in DecompressExtensionHeader()
867 SuccessOrExit(aMessage.AppendBytes(&padOption, padOption.GetSize())); in DecompressExtensionHeader()
[all …]
Dnetwork_data_notifier.cpp200 … SuccessOrExit(error = message->AppendBytes(aNetworkData->GetBytes(), aNetworkData->GetLength())); in SendServerDataNotification()
/openthread-latest/src/core/net/
Dnd6.cpp224 SuccessOrExit(AppendBytes(nullptr, aOptionSize)); in AppendOption()
231 Error TxMessage::AppendBytes(const uint8_t *aBytes, uint16_t aLength) in AppendBytes() function in ot::Ip6::Nd::TxMessage
259 SuccessOrExit(error = AppendBytes(aLinkLayerAddress.mAddress, aLinkLayerAddress.mLength)); in AppendLinkLayerOption()
Dnd6.hpp513 Error AppendBytes(const uint8_t *aBytes, uint16_t aLength);
540 return AppendBytes(reinterpret_cast<const uint8_t *>(&aObject), sizeof(ObjectType)); in Append()
Ddns_types.cpp218 error = aMessage.AppendBytes(aLabel, aLength); in AppendLabel()
1117 error = aAppender.AppendBytes(mValue, mValueLength); in AppendTo()
1129 error = aAppender.AppendBytes(mKey, keyLength); in AppendTo()
1138 SuccessOrExit(error = aAppender.AppendBytes(mKey, keyLength)); in AppendTo()
1140 error = aAppender.AppendBytes(mValue, mValueLength); in AppendTo()
Dicmp6.cpp198 SuccessOrExit(error = replyMessage->AppendBytes(&icmp6Header, Header::kDataFieldOffset)); in HandleEchoRequest()
/openthread-latest/src/core/radio/
Dble_secure.cpp204 SuccessOrExit(error = mSendMessage->AppendBytes(aBuf, aLength)); in Send()
262 SuccessOrExit(error = message->AppendBytes(aBuf, aLength)); in HandleBleReceive()
362 SuccessOrExit(mReceivedMessage->AppendBytes(aBuf, aLength)); in HandleTlsReceive()
380 SuccessOrExit(mReceivedMessage->AppendBytes(aBuf, aLength)); in HandleTlsReceive()
385 SuccessOrExit(mReceivedMessage->AppendBytes(aBuf, (uint16_t)missingBytes)); in HandleTlsReceive()
/openthread-latest/src/core/coap/
Dcoap_secure.cpp129 SuccessOrExit(message->AppendBytes(aBuf, aLength)); in HandleDtlsReceive()
Dcoap_message.cpp165 SuccessOrExit(error = AppendBytes(header, headerLength)); in AppendOptionHeader()
178 SuccessOrExit(error = AppendBytes(aValue, aLength)); in AppendOption()
Dcoap.cpp225 SuccessOrExit(error = aMessage.AppendBytes(buf, bufLen)); in SendMessage()
247 SuccessOrExit(error = aMessage.AppendBytes(buf, bufLen)); in SendMessage()
703 SuccessOrExit(error = request->AppendBytes(buf, bufLen)); in SendNextBlock1Request()
947 SuccessOrExit(error = response->AppendBytes(buf, bufLen)); in ProcessBlock2Request()
/openthread-latest/src/core/api/
Dmessage_api.cpp99 return AsCoreType(aMessage).AppendBytes(aBuf, aLength); in otMessageAppend()
/openthread-latest/src/core/meshcop/
Ddataset_updater.cpp108 SuccessOrExit(error = message->AppendBytes(aDataset.GetBytes(), aDataset.GetLength())); in RequestUpdate()

12