Lines Matching refs:ptr
42 br->ptr = NULL; in Curl_bufref_init()
59 DEBUGASSERT(br->ptr || !br->len); in Curl_bufref_free()
61 if(br->ptr && br->dtor) in Curl_bufref_free()
62 br->dtor((void *) br->ptr); in Curl_bufref_free()
65 br->ptr = NULL; 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()
80 br->ptr = (const unsigned char *) ptr; in Curl_bufref_set()
92 DEBUGASSERT(br->ptr || !br->len); in Curl_bufref_ptr()
94 return br->ptr; in Curl_bufref_ptr()
104 DEBUGASSERT(br->ptr || !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()
119 if(ptr) { in Curl_bufref_memdup()
120 cpy = Curl_memdup0(ptr, len); in Curl_bufref_memdup()