Lines Matching refs:read_len
139 uint8_t read_len = 0; in ad_stream_read() local
141 while (read_len < buf_len) { in ad_stream_read()
149 buf[read_len] = current_ltv->data_len + 1; in ad_stream_read()
151 read_len++; in ad_stream_read()
153 buf[read_len] = current_ltv->type; in ad_stream_read()
155 read_len++; in ad_stream_read()
159 const size_t size_to_copy = MIN(buf_len - read_len, remaining_data_len); in ad_stream_read()
161 (void)memcpy(&buf[read_len], in ad_stream_read()
165 read_len += size_to_copy; in ad_stream_read()
169 __ASSERT_NO_MSG(stream->remaining_size >= read_len); in ad_stream_read()
170 stream->remaining_size -= read_len; in ad_stream_read()
172 return read_len; in ad_stream_read()