/openthread-3.5.0/src/core/common/ |
D | heap_data.cpp | 49 SuccessOrAssert(mData.CopyBytesFrom(aBuffer, aLength)); in SetFrom() 69 SuccessOrAssert(aMessage.Read(aOffset, mData.GetBytes(), aLength)); in SetFrom() 83 Heap::Free(mData.GetBytes()); in Free() 84 mData.Init(nullptr, 0); in Free() 91 VerifyOrExit(aNewLength != mData.GetLength()); in UpdateBuffer() 93 Heap::Free(mData.GetBytes()); in UpdateBuffer() 97 mData.Init(nullptr, 0); in UpdateBuffer() 104 mData.Init(newBuffer, aNewLength); in UpdateBuffer() 113 mData.Init(aData.mData.GetBytes(), aData.GetLength()); in TakeFrom() 114 aData.mData.Init(nullptr, 0); in TakeFrom()
|
D | heap_data.hpp | 57 Data(void) { mData.Init(nullptr, 0); } in Data() 84 bool IsNull(void) const { return (mData.GetBytes() == nullptr); } in IsNull() 92 const uint8_t *GetBytes(void) const { return mData.GetBytes(); } in GetBytes() 100 uint16_t GetLength(void) const { return mData.GetLength(); } in GetLength() 160 …pyBytesTo(Message &aMessage) const { return aMessage.AppendBytes(mData.GetBytes(), mData.GetLength… in CopyBytesTo() 170 void CopyBytesTo(uint8_t *aBuffer) const { return mData.CopyBytesTo(aBuffer); } in CopyBytesTo() 188 MutableData<kWithUint16Length> mData; member in ot::Heap::Data
|
D | message.hpp | 240 uint8_t *GetFirstData(void) { return mBuffer.mHead.mData; } in GetFirstData() 241 const uint8_t *GetFirstData(void) const { return mBuffer.mHead.mData; } in GetFirstData() 243 uint8_t *GetData(void) { return mBuffer.mData; } in GetData() 244 const uint8_t *GetData(void) const { return mBuffer.mData; } in GetData() 252 uint8_t mData[kHeadBufferDataSize]; member 254 uint8_t mData[kBufferDataSize]; member 1534 Message *GetTail(void) { return static_cast<Message *>(mData); } in GetTail() 1535 const Message *GetTail(void) const { return static_cast<const Message *>(mData); } in GetTail() 1536 void SetTail(Message *aMessage) { mData = aMessage; } in SetTail()
|
/openthread-3.5.0/tests/unit/ |
D | test_hmac_sha256.cpp | 75 const char *mData; // (null-terminated string). in TestSha256() member 105 sha256.Update(testCase.mData, static_cast<uint16_t>(strlen(testCase.mData))); in TestSha256() 119 …SuccessOrQuit(message->AppendBytes(testCase.mData, static_cast<uint16_t>(strlen(testCase.mData)))); in TestSha256() 131 sha256.Update(*message, offsets[index++], static_cast<uint16_t>(strlen(testCase.mData))); in TestSha256() 145 const void *mData; in TestHmacSha256() member 248 hmac.Update(testCase.mData, testCase.mDataLength); in TestHmacSha256() 262 SuccessOrQuit(message->AppendBytes(testCase.mData, testCase.mDataLength)); in TestHmacSha256()
|
D | test_lowpan.hpp | 54 uint8_t mData[kPayloadMaxLength]; member 171 memcpy(mExtHeader.mData, aExtHeader, aExtHeaderLength); in SetExtHeader() 201 memcpy(mIphcHeader.mData, aIphc, aIphcLength); in SetIphcHeader() 222 memcpy(mPayload.mData, aPayload, aLength); in SetPayload()
|
D | test_link_metrics_manager.cpp | 174 VerifyOrQuit(subject1->mData.mLinkMargin == kTestLinkMargin); in TestLinkMetricsManager() 175 VerifyOrQuit(subject1->mData.mRssi == kTestRssi); in TestLinkMetricsManager()
|
/openthread-3.5.0/src/core/net/ |
D | nd6.hpp | 584 : mData(aPacket) in RouterAdvertMessage() 606 mData.Init(aBuffer, sizeof(Header)); in RouterAdvertMessage() 615 const Icmp6Packet &GetAsPacket(void) const { return mData; } in GetAsPacket() 626 return (mData.GetBytes() != nullptr) && (mData.GetLength() >= sizeof(Header)) && in IsValid() 636 …const Header &GetHeader(void) const { return *reinterpret_cast<const Header *>(mData.GetBytes()); } in GetHeader() 673 bool ContainsAnyOptions(void) const { return (mData.GetLength() > sizeof(Header)); } in ContainsAnyOptions() 682 const uint8_t *GetOptionStart(void) const { return (mData.GetBytes() + sizeof(Header)); } in GetOptionStart() 683 const uint8_t *GetDataEnd(void) const { return mData.GetBytes() + mData.GetLength(); } in GetDataEnd() 686 Data<kWithUint16Length> mData; member in ot::Ip6::Nd::RouterAdvertMessage
|
D | icmp6.hpp | 177 uint16_t GetId(void) const { return HostSwap16(mData.m16[0]); } in GetId() 185 void SetId(uint16_t aId) { mData.m16[0] = HostSwap16(aId); } in SetId() 193 uint16_t GetSequence(void) const { return HostSwap16(mData.m16[1]); } in GetSequence() 201 void SetSequence(uint16_t aSequence) { mData.m16[1] = HostSwap16(aSequence); } in SetSequence()
|
D | tcp6_ext.cpp | 117 dataSendLink.mData = &mDataBuffer[writeIndex]; in Write() 152 wrappedDataSendLink.mData = &mDataBuffer[0]; in Write()
|
D | nd6.cpp | 210 uint32_t newLength = mData.GetLength(); in AppendOption() 216 mData.SetLength(static_cast<uint16_t>(newLength)); in AppendOption()
|
/openthread-3.5.0/examples/platforms/simulation/virtual_time/ |
D | platform-sim.c | 84 …rval = sendto(sSockFd, aEvent, offsetof(struct Event, mData) + aEvent->mDataLength, 0, (struct soc… in otSimSendEvent() 99 if (rval < 0 || (uint16_t)rval < offsetof(struct Event, mData)) in receiveEvent() 113 platformRadioReceive(aInstance, event.mData, event.mDataLength); in receiveEvent() 117 otPlatUartReceived(event.mData, event.mDataLength); in receiveEvent() 154 memcpy(event.mData, aData, aLength); in otPlatUartSend() 294 assert(statusLength < sizeof(event.mData)); in otPlatOtnsStatus() 296 memcpy(event.mData, aStatus, statusLength); in otPlatOtnsStatus()
|
/openthread-3.5.0/src/core/thread/ |
D | network_diagnostic.cpp | 1050 … Tlv::Read<ExtMacAddressTlv>(aMessage, offset, AsCoreType(&aTlvInfo.mData.mExtAddress))); in GetNextDiagTlv() 1054 … SuccessOrExit(error = Tlv::Read<Address16Tlv>(aMessage, offset, aTlvInfo.mData.mAddr16)); in GetNextDiagTlv() 1062 Mle::DeviceMode(mode).Get(aTlvInfo.mData.mMode); in GetNextDiagTlv() 1067 SuccessOrExit(error = Tlv::Read<TimeoutTlv>(aMessage, offset, aTlvInfo.mData.mTimeout)); in GetNextDiagTlv() 1077 connectivityTlv.GetConnectivity(aTlvInfo.mData.mConnectivity); in GetNextDiagTlv() 1089 ParseRoute(routeTlv, aTlvInfo.mData.mRoute); in GetNextDiagTlv() 1100 leaderDataTlv.Get(AsCoreType(&aTlvInfo.mData.mLeaderData)); in GetNextDiagTlv() 1105 … static_assert(sizeof(aTlvInfo.mData.mNetworkData.m8) >= NetworkData::NetworkData::kMaxSize, in GetNextDiagTlv() 1109 aTlvInfo.mData.mNetworkData.mCount = static_cast<uint8_t>(tlvLength); in GetNextDiagTlv() 1110 aMessage.ReadBytes(valueOffset, aTlvInfo.mData.mNetworkData.m8, tlvLength); in GetNextDiagTlv() [all …]
|
D | address_resolver.hpp | 87 …const CacheEntry *GetEntry(void) const { return static_cast<const CacheEntry *>(mData[kEntryIn… in GetEntry() 88 void SetEntry(const CacheEntry *aEntry) { mData[kEntryIndex] = aEntry; } in SetEntry() 89 …heEntryList *GetList(void) const { return static_cast<const CacheEntryList *>(mData[kListIndex]); } in GetList() 90 void SetList(const CacheEntryList *aList) { mData[kListIndex] = aList; } in SetList()
|
/openthread-3.5.0/src/posix/platform/ |
D | virtual_time.cpp | 130 if (rval < 0 || (uint16_t)rval < offsetof(struct VirtualTimeEvent, mData)) in virtualTimeReceiveEvent() 146 virtualTimeSendEvent(&event, offsetof(struct VirtualTimeEvent, mData)); in virtualTimeSendSleepEvent() 157 memcpy(event.mData, aData, aLength); in virtualTimeSendRadioSpinelWriteEvent() 159 virtualTimeSendEvent(&event, offsetof(struct VirtualTimeEvent, mData) + event.mDataLength); in virtualTimeSendRadioSpinelWriteEvent()
|
D | power.cpp | 79 uint16_t length = sizeof(mData); in Set() 81 …SuccessOrExit(error = ot::Utils::CmdLineParser::ParseAsHexString(aRawPowerSetting, length, mData)); in Set() 92 string.AppendHexBytes(mData, mLength); in ToString()
|
D | power.hpp | 178 const uint8_t *GetData(void) const { return mData; } in GetData() 184 uint8_t mData[kMaxRawPowerSettingSize]; member in ot::Power::RawPowerSetting
|
/openthread-3.5.0/src/core/diags/ |
D | factory_diags.hpp | 156 string.AppendHexBytes(mData, mLength); in ToString() 163 return (mLength != aOther.mLength) || (memcmp(mData, aOther.mData, mLength) != 0); in operator !=() 166 uint8_t mData[kMaxDataSize]; member
|
/openthread-3.5.0/src/core/utils/ |
D | flash.hpp | 202 const uint8_t *GetData(void) const { return mData; } in GetData() 206 memcpy(mData, aData, aDataLength); in SetData() 213 uint8_t mData[kMaxDataSize]; member in ot::Flash::Record
|
D | link_metrics_manager.cpp | 89 aMetricsValues.mLinkMarginValue = subject->mData.mLinkMargin; in GetLinkMetricsValueByExtAddr() 90 aMetricsValues.mRssiValue = subject->mData.mRssi; in GetLinkMetricsValueByExtAddr() 267 subject->mData.mRssi = aMetricsValues->mRssiValue; in HandleEnhAckIe() 268 subject->mData.mLinkMargin = aMetricsValues->mLinkMarginValue; in HandleEnhAckIe()
|
/openthread-3.5.0/examples/platforms/simulation/ |
D | trel.c | 64 …uint8_t mData[TREL_MAX_PACKET_SIZE]; // TREL UDP packet (when TREL_DATA_MESSAGE), or service T… member 195 return (uint16_t)(&aMessage->mData[aMessage->mDataLength] - (const uint8_t *)aMessage); in getMessageSize() 258 memcpy(message->mData, sServiceTxtData, sServiceTxtLength); in sendServiceMessage() 282 otPlatTrelHandleReceived(aInstance, aMessage->mData, aMessage->mDataLength); in processMessage() 293 peerInfo.mTxtData = aMessage->mData; in processMessage() 386 memcpy(message->mData, aUdpPayload, aUdpPayloadLen); in otPlatTrelSend()
|
D | platform-simulation.h | 79 uint8_t mData[OT_EVENT_DATA_MAX_SIZE]; member
|
/openthread-3.5.0/include/openthread/ |
D | dns.h | 106 uint16_t mData[2]; member
|
D | icmp6.h | 103 } mData; ///< Message-specific data member
|
D | message.h | 270 void *mData; ///< Opaque data used by the implementation. member
|
/openthread-3.5.0/third_party/tcplp/lib/test/ |
D | test_all.c | 85 memcpy(&buf_string[0], &first.mData[0], first.mLength); in cbuf_test() 88 memcpy(&buf_string[first.mLength], &second.mData[0], second.mLength); in cbuf_test()
|