Searched refs:_capacity (Results 1 – 5 of 5) sorted by relevance
34 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()
125 size_t _capacity; member151 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()
31 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()
1609 buf._capacity = sizeof(data);
59 size_t _capacity; member86 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()