Lines Matching refs:len
43 br->len = 0; in Curl_bufref_init()
59 DEBUGASSERT(br->ptr || !br->len); in Curl_bufref_free()
66 br->len = 0; in Curl_bufref_free()
73 void Curl_bufref_set(struct bufref *br, const void *ptr, size_t len, in Curl_bufref_set() argument
76 DEBUGASSERT(ptr || !len); in Curl_bufref_set()
77 DEBUGASSERT(len <= CURL_MAX_INPUT_LENGTH); in Curl_bufref_set()
81 br->len = len; in Curl_bufref_set()
92 DEBUGASSERT(br->ptr || !br->len); in Curl_bufref_ptr()
104 DEBUGASSERT(br->ptr || !br->len); in Curl_bufref_len()
106 return br->len; in Curl_bufref_len()
109 CURLcode Curl_bufref_memdup(struct bufref *br, const void *ptr, size_t len) in Curl_bufref_memdup() argument
115 DEBUGASSERT(br->ptr || !br->len); in Curl_bufref_memdup()
116 DEBUGASSERT(ptr || !len); in Curl_bufref_memdup()
117 DEBUGASSERT(len <= CURL_MAX_INPUT_LENGTH); in Curl_bufref_memdup()
120 cpy = Curl_memdup0(ptr, len); in Curl_bufref_memdup()
125 Curl_bufref_set(br, cpy, len, curl_free); in Curl_bufref_memdup()