Home
last modified time | relevance | path

Searched refs:mData (Results 1 – 25 of 46) sorted by relevance

12

/openthread-3.5.0/src/core/common/
Dheap_data.cpp49 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()
Dheap_data.hpp57 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
Dmessage.hpp240 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/
Dtest_hmac_sha256.cpp75 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()
Dtest_lowpan.hpp54 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()
Dtest_link_metrics_manager.cpp174 VerifyOrQuit(subject1->mData.mLinkMargin == kTestLinkMargin); in TestLinkMetricsManager()
175 VerifyOrQuit(subject1->mData.mRssi == kTestRssi); in TestLinkMetricsManager()
/openthread-3.5.0/src/core/net/
Dnd6.hpp584 : 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
Dicmp6.hpp177 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()
Dtcp6_ext.cpp117 dataSendLink.mData = &mDataBuffer[writeIndex]; in Write()
152 wrappedDataSendLink.mData = &mDataBuffer[0]; in Write()
Dnd6.cpp210 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/
Dplatform-sim.c84 …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/
Dnetwork_diagnostic.cpp1050 … 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 …]
Daddress_resolver.hpp87 …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/
Dvirtual_time.cpp130 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()
Dpower.cpp79 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()
Dpower.hpp178 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/
Dfactory_diags.hpp156 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/
Dflash.hpp202 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
Dlink_metrics_manager.cpp89 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/
Dtrel.c64 …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()
Dplatform-simulation.h79 uint8_t mData[OT_EVENT_DATA_MAX_SIZE]; member
/openthread-3.5.0/include/openthread/
Ddns.h106 uint16_t mData[2]; member
Dicmp6.h103 } mData; ///< Message-specific data member
Dmessage.h270 void *mData; ///< Opaque data used by the implementation. member
/openthread-3.5.0/third_party/tcplp/lib/test/
Dtest_all.c85 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()

12