Lines Matching full:limit
73 /** current limit */
74 int limit; member
105 _this->limit = _this->capacity; in bytebuffer_create()
149 _this->limit = 0; in bytebuffer_unwrap()
166 BYTEBUF_ASSERT(_this->limit <= capacity); in bytebuffer_realloc()
168 if (_this->limit > capacity) { in bytebuffer_realloc()
177 if (_this->limit == _this->capacity) in bytebuffer_realloc()
178 _this->limit = capacity; in bytebuffer_realloc()
185 * Compact this buffer. the bytes between position and limit are copied
204 _this->limit = _this->capacity; in bytebuffer_compact()
293 /** Returns this buffer's limit */
299 return _this->limit; in bytebuffer_limit()
320 /** Returns the number of byte between current position and the limit*/
325 BYTEBUF_ASSERT(_this->limit >= _this->position); in bytebuffer_remaining()
327 return _this->limit - _this->position; in bytebuffer_remaining()
330 /** Returns whether there are data between current position and the limit */
341 * The limit is set to the position and the position is set zero.
348 _this->limit = _this->position; in bytebuffer_flip()
375 _this->limit = _this->capacity; in bytebuffer_clear()