Home
last modified time | relevance | path

Searched refs:CanAppend (Results 1 – 5 of 5) sorted by relevance

/openthread-latest/src/core/common/
Dframe_builder.cpp75 VerifyOrExit(CanAppend(aLength), error = kErrorNoBufs); in AppendBytes()
97 VerifyOrExit(CanAppend(sizeof(Mac::ExtAddress)), error = kErrorNoBufs); in AppendMacAddress()
112 VerifyOrExit(CanAppend(aLength), error = kErrorNoBufs); in AppendBytesFromMessage()
125 VerifyOrExit(CanAppend(aLength)); in AppendLength()
144 VerifyOrExit(CanAppend(aLength), error = kErrorNoBufs); in InsertBytes()
Dframe_builder.hpp109 …bool CanAppend(uint16_t aLength) const { return (static_cast<uint32_t>(mLength) + aLength) <= mMax… in CanAppend() function in ot::FrameBuilder
/openthread-latest/tests/unit/
Dtest_frame_builder.cpp73 VerifyOrQuit(frameBuilder.CanAppend(sizeof(buffer))); in TestFrameBuilder()
74 VerifyOrQuit(!frameBuilder.CanAppend(sizeof(buffer) + 1)); in TestFrameBuilder()
81 VerifyOrQuit(frameBuilder.CanAppend(sizeof(kData1))); in TestFrameBuilder()
82 VerifyOrQuit(!frameBuilder.CanAppend(sizeof(kData1) + 1)); in TestFrameBuilder()
92 VerifyOrQuit(frameBuilder.CanAppend(sizeof(buffer) - sizeof(kData1))); in TestFrameBuilder()
93 VerifyOrQuit(!frameBuilder.CanAppend(sizeof(buffer) - sizeof(kData1) + 1)); in TestFrameBuilder()
141 VerifyOrQuit(!frameBuilder.CanAppend(1)); in TestFrameBuilder()
/openthread-latest/src/core/net/
Dmdns.cpp905 bool Core::RecordInfo::CanAppend(void) const { return mIsPresent && !IsAppended(); } in CanAppend() function in ot::Dns::Multicast::Core::RecordInfo
1386 VerifyOrExit(mKeyRecord.CanAppend()); in AppendKeyRecordTo()
1749 VerifyOrExit(mAddrRecord.CanAppend()); in AppendAddressRecordsTo()
2548 VerifyOrExit(mSrvRecord.CanAppend()); in AppendSrvRecordTo()
2582 VerifyOrExit(mTxtRecord.CanAppend()); in AppendTxtRecordTo()
2613 VerifyOrExit(ptrRecord.CanAppend()); in AppendPtrRecordTo()
2950 VerifyOrExit(mServicesPtr.CanAppend()); in AppendPtrRecordTo()
Dmdns.hpp901 bool CanAppend(void) const;