Home
last modified time | relevance | path

Searched refs:_capacity (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/unbound/sldns/
H A Dsbuffer.c34 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_new()
49 buffer->_limit = buffer->_capacity = size; in sldns_buffer_new_frm_data()
69 buffer->_capacity = buffer->_limit = size; in sldns_buffer_init_frm_data()
87 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_set_capacity()
97 if (buffer->_capacity < buffer->_position + amount) { in sldns_buffer_reserve()
98 size_t new_capacity = buffer->_capacity * 3 / 2; in sldns_buffer_reserve()
108 buffer->_limit = buffer->_capacity; in sldns_buffer_reserve()
121 assert(buffer->_limit == buffer->_capacity); in sldns_buffer_printf()
H A Dsbuffer.h125 size_t _capacity; member
151 assert(buffer->_limit <= buffer->_capacity); in sldns_buffer_invariant()
196 buffer->_limit = buffer->_capacity; in sldns_buffer_clear()
284 assert(limit <= buffer->_capacity); in sldns_buffer_set_limit()
298 return buffer->_capacity; in sldns_buffer_capacity()
/freebsd/contrib/ldns/
H A Dbuffer.c31 buffer->_limit = buffer->_capacity = capacity; in ldns_buffer_new()
46 buffer->_limit = buffer->_capacity = size; in ldns_buffer_new_frm_data()
74 buffer->_limit = buffer->_capacity = capacity; in ldns_buffer_set_capacity()
83 if (buffer->_capacity < buffer->_position + amount) { in ldns_buffer_reserve()
84 size_t new_capacity = buffer->_capacity * 3 / 2; in ldns_buffer_reserve()
94 buffer->_limit = buffer->_capacity; in ldns_buffer_reserve()
107 assert(buffer->_limit == buffer->_capacity); in ldns_buffer_printf()
H A Ddnssec_zone.c1609 buf._capacity = sizeof(data);
/freebsd/contrib/ldns/ldns/
H A Dbuffer.h59 size_t _capacity; member
86 assert(buffer->_limit <= buffer->_capacity); in ldns_buffer_invariant()
122 buffer->_limit = buffer->_capacity; in ldns_buffer_clear()
211 assert(limit <= buffer->_capacity); in ldns_buffer_set_limit()
225 return buffer->_capacity; in ldns_buffer_capacity()