Lines Matching refs:_limit
122 size_t _limit; member
150 assert(buffer->_position <= buffer->_limit); in sldns_buffer_invariant()
151 assert(buffer->_limit <= buffer->_capacity); in sldns_buffer_invariant()
196 buffer->_limit = buffer->_capacity; in sldns_buffer_clear()
210 buffer->_limit = buffer->_position; in sldns_buffer_flip()
246 assert(mark <= buffer->_limit); in sldns_buffer_set_position()
260 assert(buffer->_position + count <= buffer->_limit); in sldns_buffer_skip()
272 return buffer->_limit; in sldns_buffer_limit()
285 buffer->_limit = limit; in sldns_buffer_set_limit()
286 if (buffer->_position > buffer->_limit) in sldns_buffer_set_limit()
287 buffer->_position = buffer->_limit; in sldns_buffer_set_limit()
332 assert(at <= buffer->_limit); in sldns_buffer_at()
357 return sldns_buffer_at(buffer, buffer->_limit); in sldns_buffer_end()
382 assert(at <= buffer->_limit); in sldns_buffer_remaining_at()
383 return at < buffer->_limit ? buffer->_limit - at : 0; in sldns_buffer_remaining_at()