/openthread-latest/src/core/common/ |
D | as_core_type.hpp | 64 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()
|
D | const_cast.hpp | 50 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
|
D | frame_builder.hpp | 207 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()
|
D | data.hpp | 148 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()
|
D | random.hpp | 173 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()
|
D | pool.hpp | 142 …bool IsPoolEntry(const Type &aObject) const { return (&mPool[0] <= &aObject) && (&aObject < GetArr… in IsPoolEntry()
|
D | clearable.hpp | 52 template <typename ObjectType> void ClearAllBytes(ObjectType &aObject) in ClearAllBytes() argument 56 memset(reinterpret_cast<void *>(&aObject), 0, sizeof(ObjectType)); in ClearAllBytes()
|
D | message.hpp | 670 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 …]
|
D | frame_data.hpp | 147 template <typename ObjectType> Error Read(ObjectType &aObject) in Read() argument 151 return ReadBytes(&aObject, sizeof(ObjectType)); in Read()
|
D | appender.hpp | 113 template <typename ObjectType> Error Append(const ObjectType &aObject) in Append() argument 117 return AppendBytes(&aObject, sizeof(ObjectType)); in Append()
|
/openthread-latest/src/core/crypto/ |
D | hmac_sha256.hpp | 103 template <typename ObjectType> void Update(const ObjectType &aObject) in Update() argument 106 return Update(&aObject, sizeof(ObjectType)); in Update()
|
D | sha256.hpp | 115 template <typename ObjectType> void Update(const ObjectType &aObject) in Update() argument 118 return Update(&aObject, sizeof(ObjectType)); in Update()
|
D | aes_ccm.hpp | 129 template <typename ObjectType> void Header(const ObjectType &aObject) in Header() argument 133 Header(&aObject, sizeof(ObjectType)); in Header()
|
/openthread-latest/tests/unit/ |
D | test_smart_ptrs.cpp | 63 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/ |
D | nd6.hpp | 536 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/ |
D | cli_utils.hpp | 500 template <typename ObjectType> static void ClearAllBytes(ObjectType &aObject) in ClearAllBytes() argument 504 memset(reinterpret_cast<void *>(&aObject), 0, sizeof(ObjectType)); in ClearAllBytes()
|