Home
last modified time | relevance | path

Searched refs:aObject (Results 1 – 16 of 16) sorted by relevance

/openthread-latest/src/core/common/
Das_core_type.hpp64 template <typename Type> typename CoreType<Type>::Type &AsCoreType(Type *aObject) in AsCoreType() argument
66 AssertPointerIsNotNull(aObject); in AsCoreType()
68 return *static_cast<typename CoreType<Type>::Type *>(aObject); in AsCoreType()
80 template <typename Type> const typename CoreType<Type>::Type &AsCoreType(const Type *aObject) in AsCoreType() argument
82 AssertPointerIsNotNull(aObject); in AsCoreType()
84 return *static_cast<const typename CoreType<Type>::Type *>(aObject); in AsCoreType()
96 template <typename Type> typename CoreType<Type>::Type *AsCoreTypePtr(Type *aObject) in AsCoreTypePtr() argument
98 return static_cast<typename CoreType<Type>::Type *>(aObject); in AsCoreTypePtr()
110 template <typename Type> const typename CoreType<Type>::Type *AsCoreTypePtr(const Type *aObject) in AsCoreTypePtr() argument
112 return static_cast<const typename CoreType<Type>::Type *>(aObject); in AsCoreTypePtr()
Dconst_cast.hpp50 template <typename Type> const Type &AsConst(Type &aObject) { return const_cast<const Type &>(aObje… in AsConst() argument
72 template <typename Type> Type &AsNonConst(const Type &aObject) { return const_cast<Type &>(aObject)… in AsNonConst() argument
Dframe_builder.hpp207 template <typename ObjectType> Error Append(const ObjectType &aObject) in Append() argument
211 return AppendBytes(&aObject, sizeof(ObjectType)); in Append()
269 template <typename ObjectType> void Write(uint16_t aOffset, const ObjectType &aObject) in Write() argument
273 WriteBytes(aOffset, &aObject, sizeof(ObjectType)); in Write()
305 template <typename ObjectType> Error Insert(uint16_t aOffset, const ObjectType &aObject) in Insert() argument
309 return InsertBytes(aOffset, &aObject, sizeof(ObjectType)); in Insert()
Ddata.hpp148 template <typename ObjectType> void InitFrom(const ObjectType &aObject) in InitFrom() argument
151 Init(&aObject, sizeof(aObject)); in InitFrom()
295 template <typename ObjectType> void InitFrom(ObjectType &aObject) in InitFrom() argument
298 Init(&aObject, sizeof(aObject)); in InitFrom()
Drandom.hpp173 template <typename ObjectType> void Fill(ObjectType &aObject) in Fill() argument
177 FillBuffer(reinterpret_cast<uint8_t *>(&aObject), sizeof(ObjectType)); in Fill()
216 template <typename ObjectType> Error Fill(ObjectType &aObject) in Fill() argument
220 return FillBuffer(reinterpret_cast<uint8_t *>(&aObject), sizeof(ObjectType)); in Fill()
Dpool.hpp142 …bool IsPoolEntry(const Type &aObject) const { return (&mPool[0] <= &aObject) && (&aObject < GetArr… in IsPoolEntry()
Dclearable.hpp52 template <typename ObjectType> void ClearAllBytes(ObjectType &aObject) in ClearAllBytes() argument
56 memset(reinterpret_cast<void *>(&aObject), 0, sizeof(ObjectType)); in ClearAllBytes()
Dmessage.hpp670 template <typename ObjectType> Error Prepend(const ObjectType &aObject) in Prepend() argument
674 return PrependBytes(&aObject, sizeof(ObjectType)); in Prepend()
779 template <typename ObjectType> Error Append(const ObjectType &aObject) in Append() argument
783 return AppendBytes(&aObject, sizeof(ObjectType)); in Append()
869 template <typename ObjectType> Error Read(uint16_t aOffset, ObjectType &aObject) const in Read()
873 return Read(aOffset, &aObject, sizeof(ObjectType)); in Read()
887 …template <typename ObjectType> Error Read(const OffsetRange &aOffsetRange, ObjectType &aObject) co… in Read()
891 return Read(aOffsetRange, &aObject, sizeof(ObjectType)); in Read()
946 template <typename ObjectType> bool Compare(uint16_t aOffset, const ObjectType &aObject) const in Compare()
950 return CompareBytes(aOffset, &aObject, sizeof(ObjectType)); in Compare()
[all …]
Dframe_data.hpp147 template <typename ObjectType> Error Read(ObjectType &aObject) in Read() argument
151 return ReadBytes(&aObject, sizeof(ObjectType)); in Read()
Dappender.hpp113 template <typename ObjectType> Error Append(const ObjectType &aObject) in Append() argument
117 return AppendBytes(&aObject, sizeof(ObjectType)); in Append()
/openthread-latest/src/core/crypto/
Dhmac_sha256.hpp103 template <typename ObjectType> void Update(const ObjectType &aObject) in Update() argument
106 return Update(&aObject, sizeof(ObjectType)); in Update()
Dsha256.hpp115 template <typename ObjectType> void Update(const ObjectType &aObject) in Update() argument
118 return Update(&aObject, sizeof(ObjectType)); in Update()
Daes_ccm.hpp129 template <typename ObjectType> void Header(const ObjectType &aObject) in Header() argument
133 Header(&aObject, sizeof(ObjectType)); in Header()
/openthread-latest/tests/unit/
Dtest_smart_ptrs.cpp63 const TestObject *aObject, in VerifyPointer() argument
66 if (aObject == nullptr) in VerifyPointer()
75 VerifyOrQuit(aPointer.Get() == aObject); in VerifyPointer()
76 VerifyOrQuit(aPointer == aObject); in VerifyPointer()
84 VerifyOrQuit(aObject->GetRetainCount() == aRetainCount); in VerifyPointer()
/openthread-latest/src/core/net/
Dnd6.hpp536 template <typename ObjectType> Error Append(const ObjectType &aObject) in Append() argument
540 return AppendBytes(reinterpret_cast<const uint8_t *>(&aObject), sizeof(ObjectType)); in Append()
/openthread-latest/src/cli/
Dcli_utils.hpp500 template <typename ObjectType> static void ClearAllBytes(ObjectType &aObject) in ClearAllBytes() argument
504 memset(reinterpret_cast<void *>(&aObject), 0, sizeof(ObjectType)); in ClearAllBytes()