Home
last modified time | relevance | path

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

/openthread-latest/src/cli/
Dcli_utils.hpp508 template <typename ValueType> using GetHandler = ValueType (&)(otInstance *);
509 template <typename ValueType> using SetHandler = void (&)(otInstance *, ValueType);
510 template <typename ValueType> using SetHandlerFailable = otError (&)(otInstance *, ValueType);
516 template <typename ValueType> static constexpr const char *FormatStringFor(void);
532 template <typename ValueType> otError ProcessGet(Arg aArgs[], GetHandler<ValueType> aGetHandler) in ProcessGet()
535 …TypeTraits::IsSame<ValueType, uint8_t>::kValue || TypeTraits::IsSame<ValueType, uint16_t>::kValue … in ProcessGet()
536 … TypeTraits::IsSame<ValueType, int8_t>::kValue || TypeTraits::IsSame<ValueType, int16_t>::kValue || in ProcessGet()
537 TypeTraits::IsSame<ValueType, const char *>::kValue, in ProcessGet()
543 OutputLine(FormatStringFor<ValueType>(), aGetHandler(GetInstancePtr())); in ProcessGet()
549 template <typename ValueType> otError ProcessSet(Arg aArgs[], SetHandler<ValueType> aSetHandler) in ProcessSet()
[all …]
/openthread-latest/tests/unit/
Dtest_cmd_line_parser.cpp53 template <typename ValueType> struct TestCase
57 ValueType mValue;
60 template <typename ValueType, otError (&Parser)(const char *aString, ValueType &aValue)>
61 void VerifyParser(const TestCase<ValueType> *aTestCases, const char *aParserName, const char *aPrin… in VerifyParser()
63 const TestCase<ValueType> *testCase = aTestCases; in VerifyParser()
64 ValueType value; in VerifyParser()
/openthread-latest/src/core/common/
Dsettings.hpp481 typedef Utils::Slaac::IidSecretKey ValueType; ///< The associated value type. typedef in ot::SettingsBase::SlaacIidSecretKey
536 typedef Ip6::Prefix ValueType; ///< The associated value type. typedef in ot::SettingsBase::BrUlaPrefix
604 typedef Crypto::Ecdsa::P256::KeyPair ValueType; ///< The associated value type. typedef in ot::SettingsBase::SrpEcdsaKey
715 typedef MeshCoP::BorderAgent::Id ValueType; ///< The associated value type. typedef in ot::SettingsBase::BorderAgentId
850 template <typename EntryType> Error Read(typename EntryType::ValueType &aValue) const in Read()
852 return ReadEntry(EntryType::kKey, &aValue, sizeof(typename EntryType::ValueType)); in Read()
897 template <typename EntryType> Error Save(const typename EntryType::ValueType &aValue) in Save()
899 typename EntryType::ValueType prev; in Save()
901 return SaveEntry(EntryType::kKey, &aValue, &prev, sizeof(typename EntryType::ValueType)); in Save()
Dtlvs.hpp175 … template <typename SimpleTlvType> const typename SimpleTlvType::ValueType &ReadValueAs(void) const in ReadValueAs()
177 return *reinterpret_cast<const typename SimpleTlvType::ValueType *>(this + 1); in ReadValueAs()
207 …template <typename SimpleTlvType> void WriteValueAs(const typename SimpleTlvType::ValueType &aValu… in WriteValueAs()
319 …static Error Read(const Message &aMessage, uint16_t aOffset, typename SimpleTlvType::ValueType &aV… in Read()
487 static Error Find(const Message &aMessage, typename SimpleTlvType::ValueType &aValue) in Find()
590 static Error Append(Message &aMessage, const typename SimpleTlvType::ValueType &aValue) in Append()
828 typedef TlvValueType ValueType; ///< The TLV Value type. typedef in ot::SimpleTlvInfo
/openthread-latest/src/posix/platform/
Dmdns_socket.hpp154 template <typename ValueType>
155 …static otError SetSocketOption(int aFd, int aLevel, int aOption, const ValueType &aValue, const ch… in SetSocketOption()
157 return SetSocketOptionValue(aFd, aLevel, aOption, &aValue, sizeof(ValueType), aOptionName); in SetSocketOption()
/openthread-latest/src/core/meshcop/
Ddataset.cpp134 minLength = sizeof(ActiveTimestampTlv::ValueType); in IsTlvValid()
137 minLength = sizeof(PendingTimestampTlv::ValueType); in IsTlvValid()
146 minLength = sizeof(ExtendedPanIdTlv::ValueType); in IsTlvValid()
149 minLength = sizeof(PskcTlv::ValueType); in IsTlvValid()
152 minLength = sizeof(NetworkKeyTlv::ValueType); in IsTlvValid()
155 minLength = sizeof(MeshLocalPrefixTlv::ValueType); in IsTlvValid()
Ddataset.hpp317 template <typename SimpleTlvType> Error Read(typename SimpleTlvType::ValueType &aValue) const in Read()
381 template <typename SimpleTlvType> Error Write(const typename SimpleTlvType::ValueType &aValue) in Write()