Searched refs:elem_len (Results 1 – 2 of 2) sorted by relevance
526 uint8_t elem_len; in avdt_msg_prs_cfg() local551 elem_len = *p++; in avdt_msg_prs_cfg()568 p += elem_len; in avdt_msg_prs_cfg()570 elem_len); in avdt_msg_prs_cfg()575 if ((elem_len > avdt_msg_ie_len_max[elem]) || in avdt_msg_prs_cfg()576 (elem_len < avdt_msg_ie_len_min[elem])) { in avdt_msg_prs_cfg()583 AVDT_TRACE_DEBUG("elem=%d elem_len: %d psc_mask=0x%x", elem, elem_len, in avdt_msg_prs_cfg()608 if (p + elem_len > p_end) { in avdt_msg_prs_cfg()613 if ((elem_len + protect_offset) < AVDT_PROTECT_SIZE) { in avdt_msg_prs_cfg()615 p_cfg->protect_info[protect_offset] = elem_len; in avdt_msg_prs_cfg()[all …]
2241 bool Verify(size_t elem, size_t elem_len) const {2244 auto upper_bound = elem + elem_len;2249 return Check(elem_len < size_ && elem <= size_ - elem_len);2267 bool Verify(const uint8_t *base, voffset_t elem_off, size_t elem_len) const {2268 return Verify(static_cast<size_t>(base - buf_) + elem_off, elem_len);