/openthread-3.6.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() 85 VerifyOrExit(aLength == mData.GetLength()); in Matches() 93 matches = mData.MatchesBytesIn(aBuffer); in Matches() 102 Heap::Free(mData.GetBytes()); in Free() 103 mData.Init(nullptr, 0); in Free() 110 VerifyOrExit(aNewLength != mData.GetLength()); in UpdateBuffer() 112 Heap::Free(mData.GetBytes()); in UpdateBuffer() 116 mData.Init(nullptr, 0); in UpdateBuffer() 123 mData.Init(newBuffer, aNewLength); in UpdateBuffer() [all …]
|
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() 200 MutableData<kWithUint16Length> mData; member in ot::Heap::Data
|
D | message.hpp | 242 uint8_t *GetFirstData(void) { return mBuffer.mHead.mData; } in GetFirstData() 243 const uint8_t *GetFirstData(void) const { return mBuffer.mHead.mData; } in GetFirstData() 245 uint8_t *GetData(void) { return mBuffer.mData; } in GetData() 246 const uint8_t *GetData(void) const { return mBuffer.mData; } in GetData() 254 uint8_t mData[kHeadBufferDataSize]; member 256 uint8_t mData[kBufferDataSize]; member 1611 Message *GetTail(void) { return static_cast<Message *>(mData); } in GetTail() 1612 const Message *GetTail(void) const { return static_cast<const Message *>(mData); } in GetTail() 1613 void SetTail(Message *aMessage) { mData = aMessage; } in SetTail()
|
/openthread-3.6.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.6.0/src/core/net/ |
D | nd6.hpp | 682 : mData(aPacket) in RouterAdvertMessage() 704 mData.Init(aBuffer, sizeof(Header)); in RouterAdvertMessage() 713 const Icmp6Packet &GetAsPacket(void) const { return mData; } in GetAsPacket() 724 return (mData.GetBytes() != nullptr) && (mData.GetLength() >= sizeof(Header)) && in IsValid() 734 …const Header &GetHeader(void) const { return *reinterpret_cast<const Header *>(mData.GetBytes()); } in GetHeader() 742 Header &GetHeader(void) { return *reinterpret_cast<Header *>(AsNonConst(mData.GetBytes())); } in GetHeader() 790 bool ContainsAnyOptions(void) const { return (mData.GetLength() > sizeof(Header)); } in ContainsAnyOptions() 799 const uint8_t *GetOptionStart(void) const { return (mData.GetBytes() + sizeof(Header)); } in GetOptionStart() 800 const uint8_t *GetDataEnd(void) const { return mData.GetBytes() + mData.GetLength(); } in GetDataEnd() 803 Data<kWithUint16Length> mData; member in ot::Ip6::Nd::RouterAdvertMessage
|
D | icmp6.hpp | 175 uint16_t GetId(void) const { return BigEndian::HostSwap16(mData.m16[0]); } in GetId() 183 void SetId(uint16_t aId) { mData.m16[0] = BigEndian::HostSwap16(aId); } in SetId() 191 uint16_t GetSequence(void) const { return BigEndian::HostSwap16(mData.m16[1]); } in GetSequence() 199 void SetSequence(uint16_t aSequence) { mData.m16[1] = BigEndian::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 | 220 uint32_t newLength = mData.GetLength(); in AppendOption() 226 mData.SetLength(static_cast<uint16_t>(newLength)); in AppendOption()
|
/openthread-3.6.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.6.0/src/core/thread/ |
D | network_diagnostic.cpp | 1038 … Tlv::Read<ExtMacAddressTlv>(aMessage, offset, AsCoreType(&aTlvInfo.mData.mExtAddress))); in GetNextDiagTlv() 1042 … SuccessOrExit(error = Tlv::Read<Address16Tlv>(aMessage, offset, aTlvInfo.mData.mAddr16)); in GetNextDiagTlv() 1050 Mle::DeviceMode(mode).Get(aTlvInfo.mData.mMode); in GetNextDiagTlv() 1055 SuccessOrExit(error = Tlv::Read<TimeoutTlv>(aMessage, offset, aTlvInfo.mData.mTimeout)); in GetNextDiagTlv() 1065 connectivityTlv.GetConnectivity(aTlvInfo.mData.mConnectivity); in GetNextDiagTlv() 1077 ParseRoute(routeTlv, aTlvInfo.mData.mRoute); in GetNextDiagTlv() 1088 leaderDataTlv.Get(AsCoreType(&aTlvInfo.mData.mLeaderData)); in GetNextDiagTlv() 1093 … static_assert(sizeof(aTlvInfo.mData.mNetworkData.m8) >= NetworkData::NetworkData::kMaxSize, in GetNextDiagTlv() 1097 aTlvInfo.mData.mNetworkData.mCount = static_cast<uint8_t>(tlvLength); in GetNextDiagTlv() 1098 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.6.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 | 80 uint16_t length = sizeof(mData); in Set() 82 …SuccessOrExit(error = ot::Utils::CmdLineParser::ParseAsHexString(aRawPowerSetting, length, mData)); in Set() 93 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.6.0/src/core/meshcop/ |
D | meshcop_tlvs.cpp | 173 entriesData.mData = &mEntriesStart; in ReadChannelMask() 227 entry = reinterpret_cast<const Entry *>(mData); in Parse() 257 mData += size; in Parse() 269 Entry *entry = reinterpret_cast<Entry *>(aValue.mData); in PrepareValue() 294 return Tlv::Append<ChannelMaskTlv>(aMessage, value.mData, value.mLength); in AppendTo()
|
/openthread-3.6.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.6.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 | 90 aMetricsValues.mLinkMarginValue = subject->mData.mLinkMargin; in GetLinkMetricsValueByExtAddr() 91 aMetricsValues.mRssiValue = subject->mData.mRssi; in GetLinkMetricsValueByExtAddr() 268 subject->mData.mRssi = aMetricsValues->mRssiValue; in HandleEnhAckIe() 269 subject->mData.mLinkMargin = aMetricsValues->mLinkMarginValue; in HandleEnhAckIe()
|
/openthread-3.6.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 196 return (uint16_t)(&aMessage->mData[aMessage->mDataLength] - (const uint8_t *)aMessage); in getMessageSize() 259 memcpy(message->mData, sServiceTxtData, sServiceTxtLength); in sendServiceMessage() 283 otPlatTrelHandleReceived(aInstance, aMessage->mData, aMessage->mDataLength); in processMessage() 294 peerInfo.mTxtData = aMessage->mData; in processMessage() 387 memcpy(message->mData, aUdpPayload, aUdpPayloadLen); in otPlatTrelSend()
|
D | platform-simulation.h | 79 uint8_t mData[OT_EVENT_DATA_MAX_SIZE]; member
|
/openthread-3.6.0/include/openthread/ |
D | dns.h | 108 uint16_t mData[2]; member
|
D | icmp6.h | 103 } mData; ///< Message-specific data member
|
/openthread-3.6.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()
|