Lines Matching refs:ad
26 * Return true if this |ad| represent properly formatted advertising data.
28 static bool IsValid(const std::vector<uint8_t>& ad) {
31 size_t ad_len = ad.size();
33 uint8_t len = ad[position];
52 * This function returns a pointer inside the |ad| array of length |ad_len|
55 static const uint8_t* GetFieldByType(const uint8_t* ad, size_t ad_len,
60 uint8_t len = ad[position];
65 uint8_t adv_type = ad[position + 1];
70 return ad + position + 2;
84 static const uint8_t* GetFieldByType(std::vector<uint8_t> const& ad,
86 return GetFieldByType(ad.data(), ad.size(), type, p_length);