Searched refs:CanInsert (Results 1 – 3 of 3) sorted by relevance
847 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()
603 VerifyOrExit(CanInsert(aTlvSize), tlv = nullptr); in AppendTlv()616 OT_ASSERT(CanInsert(aLength) && mTlvs <= start && start <= mTlvs + mLength); in Insert()
725 bool CanInsert(uint16_t aSize) const { return (mLength + aSize <= mSize); } in CanInsert() function in ot::NetworkData::MutableNetworkData