Lines Matching refs:attr_len
396 UINT32 attr_len, UINT8 *p_val) in SDP_AddAttribute() argument
413 UINT32 len = (attr_len > 200) ? 200 : attr_len; in SDP_AddAttribute()
421 handle,attr_id,attr_type,attr_len,p_val,num_array); in SDP_AddAttribute()
426 handle,attr_id,attr_type,attr_len,p_val,*p_val); in SDP_AddAttribute()
431 handle,attr_id,attr_type,attr_len,p_val,p_val); in SDP_AddAttribute()
471 p_attr->len = attr_len; in SDP_AddAttribute()
473 if (p_rec->free_pad_ptr + attr_len >= SDP_MAX_PAD_LEN) in SDP_AddAttribute()
479 attr_len, SDP_MAX_PAD_LEN - p_rec->free_pad_ptr ); in SDP_AddAttribute()
481 attr_len = SDP_MAX_PAD_LEN - p_rec->free_pad_ptr; in SDP_AddAttribute()
486 attr_len = 0; in SDP_AddAttribute()
489 if ((attr_len > 0) && (p_val != 0)) in SDP_AddAttribute()
491 p_attr->len = attr_len; in SDP_AddAttribute()
492 memcpy (&p_rec->attr_pad[p_rec->free_pad_ptr], p_val, (size_t)attr_len); in SDP_AddAttribute()
494 p_rec->free_pad_ptr += attr_len; in SDP_AddAttribute()
496 … else if ((attr_len == 0 && p_attr->len != 0) || /* if truncate to 0 length, simply don't add */ in SDP_AddAttribute()
500 attr_id, attr_len ); in SDP_AddAttribute()