Home
last modified time | relevance | path

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

/openthread-3.5.0/src/cli/
Dcli.hpp291 template <typename ValueType> using GetHandler = ValueType (&)(otInstance *);
292 template <typename ValueType> using SetHandler = void (&)(otInstance *, ValueType);
293 template <typename ValueType> using SetHandlerFailable = otError (&)(otInstance *, ValueType);
299 template <typename ValueType> static constexpr const char *FormatStringFor(void);
303 template <typename ValueType> otError ProcessGet(Arg aArgs[], GetHandler<ValueType> aGetHandler) in ProcessGet()
306 …TypeTraits::IsSame<ValueType, uint8_t>::kValue || TypeTraits::IsSame<ValueType, uint16_t>::kValue … in ProcessGet()
307 … TypeTraits::IsSame<ValueType, int8_t>::kValue || TypeTraits::IsSame<ValueType, int16_t>::kValue || in ProcessGet()
308 TypeTraits::IsSame<ValueType, const char *>::kValue, in ProcessGet()
314 OutputLine(FormatStringFor<ValueType>(), aGetHandler(GetInstancePtr())); in ProcessGet()
320 template <typename ValueType> otError ProcessSet(Arg aArgs[], SetHandler<ValueType> aSetHandler) in ProcessSet()
[all …]
/openthread-3.5.0/tests/unit/
Dtest_cmd_line_parser.cpp51 template <typename ValueType> struct TestCase
55 ValueType mValue;
58 template <typename ValueType, otError (&Parser)(const char *aString, ValueType &aValue)>
59 void VerifyParser(const TestCase<ValueType> *aTestCases, const char *aParserName, const char *aPrin… in VerifyParser()
61 const TestCase<ValueType> *testCase = aTestCases; in VerifyParser()
62 ValueType value; in VerifyParser()
/openthread-3.5.0/src/core/common/
Dsettings.hpp525 typedef Utils::Slaac::IidSecretKey ValueType; ///< The associated value type. typedef in ot::SettingsBase::SlaacIidSecretKey
585 typedef Ip6::Prefix ValueType; ///< The associated value type. typedef in ot::SettingsBase::BrUlaPrefix
660 typedef Crypto::Ecdsa::P256::KeyPair ValueType; ///< The associated value type. typedef in ot::SettingsBase::SrpEcdsaKey
961 template <typename EntryType> Error Read(typename EntryType::ValueType &aValue) const in Read()
963 return ReadEntry(EntryType::kKey, &aValue, sizeof(typename EntryType::ValueType)); in Read()
1010 template <typename EntryType> Error Save(const typename EntryType::ValueType &aValue) in Save()
1012 typename EntryType::ValueType prev; in Save()
1014 return SaveEntry(EntryType::kKey, &aValue, &prev, sizeof(typename EntryType::ValueType)); in Save()
Dtlvs.hpp207 …static Error Read(const Message &aMessage, uint16_t aOffset, typename SimpleTlvType::ValueType &aV… in Read()
404 static Error Find(const Message &aMessage, typename SimpleTlvType::ValueType &aValue) in Find()
493 static Error Append(Message &aMessage, const typename SimpleTlvType::ValueType &aValue) in Append()
697 typedef TlvValueType ValueType; ///< The TLV Value type. typedef in ot::SimpleTlvInfo
/openthread-3.5.0/src/core/meshcop/
Ddataset.hpp780 template <typename ValueType> Error SetTlv(Tlv::Type aType, const ValueType &aValue) in SetTlv()
782 static_assert(!TypeTraits::IsPointer<ValueType>::kValue, "ValueType must not be a pointer"); in SetTlv()
784 return SetTlv(aType, &aValue, sizeof(ValueType)); in SetTlv()