Home
last modified time | relevance | path

Searched refs:CanInsert (Results 1 – 3 of 3) sorted by relevance

/external/openthread/src/core/thread/
Dnetwork_data_leader_ftd.cpp847 VerifyOrExit(CanInsert(sizeof(HasRouteTlv) + sizeof(HasRouteEntry)), error = kErrorNoBufs); in AddHasRoute()
862 VerifyOrExit(CanInsert(sizeof(HasRouteEntry)), error = kErrorNoBufs); in AddHasRoute()
895 VerifyOrExit(CanInsert(sizeof(BorderRouterTlv) + sizeof(BorderRouterEntry) + in AddBorderRouter()
913 … VerifyOrExit(CanInsert(sizeof(BorderRouterEntry) + sizeof(ContextTlv)), error = kErrorNoBufs); in AddBorderRouter()
931 VerifyOrExit(CanInsert(sizeof(BorderRouterEntry)), error = kErrorNoBufs); in AddBorderRouter()
952 VerifyOrExit(CanInsert(tlvSize), error = kErrorNoBufs); in AddServer()
Dnetwork_data.cpp603 VerifyOrExit(CanInsert(aTlvSize), tlv = nullptr); in AppendTlv()
616 OT_ASSERT(CanInsert(aLength) && mTlvs <= start && start <= mTlvs + mLength); in Insert()
Dnetwork_data.hpp725 bool CanInsert(uint16_t aSize) const { return (mLength + aSize <= mSize); } in CanInsert() function in ot::NetworkData::MutableNetworkData