Searched refs:kMaxLength (Results 1 – 16 of 16) sorted by relevance
70 …static constexpr uint8_t kMaxLength = OT_JOINER_MAX_PSKD_LENGTH; ///< Max PSKd string length (excl… member in ot::MeshCoP::JoinerPskd113 uint8_t GetLength(void) const { return static_cast<uint8_t>(StringLength(m8, kMaxLength + 1)); } in GetLength()148 …static constexpr uint8_t kMaxLength = OT_JOINER_MAX_DISCERNER_LENGTH; ///< Max length of a Discern… member in ot::MeshCoP::JoinerDiscerner195 bool IsValid(void) const { return (0 < mLength) && (mLength <= kMaxLength); } in IsValid()246 …static constexpr uint8_t kMaxLength = OT_STEERING_DATA_MAX_LENGTH; ///< Maximum Steering Data leng… member in ot::MeshCoP::SteeringData267 void Init(uint8_t aLength = kMaxLength);
88 uint16_t pskdLength = StringLength(aPskdString, kMaxLength + 1); in IsPskdValid()90 VerifyOrExit(pskdLength >= kMinLength && pskdLength <= kMaxLength); in IsPskdValid()191 OT_ASSERT(aLength <= kMaxLength); in Init()220 OT_ASSERT((mLength > 0) && (mLength <= kMaxLength)); in UpdateBloomFilter()
103 if (mCommissionerId.GetLength() > CommissionerIdTlv::kMaxLength) in HandleTmf()105 mCommissionerId.SetLength(CommissionerIdTlv::kMaxLength); in HandleTmf()
626 char mCommissionerId[CommissionerIdTlv::kMaxLength + 1];
861 static constexpr uint8_t kMaxLength = 64; ///< maximum length (bytes) member in ot::MeshCoP::CommissionerIdTlv906 char mCommissionerId[kMaxLength];
367 VerifyOrExit(len < CommissionerIdTlv::kMaxLength, error = kErrorInvalidArgs); in SetId()
61 static constexpr uint32_t kMaxLength = kMaxDatagramLength; in IsValid() local63 static constexpr uint32_t kMaxLength = kMaxAssembledDatagramLength; in IsValid()66 return IsVersion6() && ((sizeof(Header) + GetPayloadLength()) <= kMaxLength); in IsValid()
103 return (GetSize() >= sizeof(*this)) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()138 return (GetSize() >= kMinSize) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()
596 static constexpr uint8_t kMaxLength = 5; member in ot::Ip6::PadOption598 uint8_t mPads[kMaxLength];
99 …static constexpr uint8_t kMaxLength = OT_IP6_ADDRESS_SIZE * CHAR_BIT; ///< Max length of a prefix … member in ot::Ip6::Prefix188 bool IsValid(void) const { return (mLength <= kMaxLength); } in IsValid()
192 SuccessOrExit(StringParseUint8(cur, mLength, kMaxLength)); in FromString()
169 static constexpr uint16_t kMaxLength = 100; in VerifyData() local170 uint8_t buffer[kMaxLength]; in VerifyData()
74 for (uint8_t len = 1; len <= MeshCoP::SteeringData::kMaxLength; len++) in TestSteeringData()
467 for (uint8_t prefixLength = 1; prefixLength <= ot::Ip6::Prefix::kMaxLength; prefixLength++) in TestIp6Prefix()
100 static_assert(static_cast<uint16_t>(MeshCoP::JoinerPskd::kMaxLength) <= in SetPsk()
355 uint8_t dataLength = MeshCoP::SteeringData::kMaxLength; in HandleDiscoveryResponse()