Searched refs:_capacity (Results 1 – 5 of 5) sorted by relevance
20 private int _capacity; field in DotZLib.CircularBuffer31 _capacity = capacity; in CircularBuffer()42 int trueCount = Math.Min(count, _capacity - Size); in Put()44 _buffer[(_tail+i) % _capacity] = source[offset+i]; in Put()46 _tail %= _capacity; in Put()53 if (Size == _capacity) // no room in Put()56 _tail %= _capacity; in Put()65 destination[offset + i] = _buffer[(_head+i) % _capacity]; in Get()67 _head %= _capacity; in Get()77 int result = (int)_buffer[_head++ % _capacity]; in Get()
15 unsigned _capacity; variable31 _capacity = newCapacity; in ReAllocForNewCapacity()38 if (_size != _capacity) in ReserveOnePosition()40 if (_capacity >= k_VectorSizeMax) in ReserveOnePosition()42 const unsigned rem = k_VectorSizeMax - _capacity; in ReserveOnePosition()43 unsigned add = (_capacity >> 2) + 1; in ReserveOnePosition()46 ReAllocForNewCapacity(_capacity + add); in ReserveOnePosition()49 CRecordVector(): _items(NULL), _size(0), _capacity(0) {} in CRecordVector()51 CRecordVector(const CRecordVector &v): _items(NULL), _size(0), _capacity(0) in CRecordVector()59 _capacity = size; in CRecordVector()[all …]
57 //% if (NEW_COUNT > _capacity) {63 //% if ((NEW_COUNT + (2 * kChunkSize)) < _capacity) {78 //% NSUInteger _capacity;117 //% _capacity = count;258 //% _capacity = 0;264 //% _capacity = newCapacity;306 NSUInteger _capacity;345 _capacity = count;442 _capacity = 0;448 _capacity = newCapacity;[all …]
104 _capacity = 0; in Free()109 if (cap <= _capacity) in EnsureCapacity()111 size_t delta = _capacity / 4; in EnsureCapacity()112 size_t cap2 = _capacity + delta; in EnsureCapacity()119 _capacity = cap; in EnsureCapacity()
69 size_t _capacity; variable73 CByteDynBuffer(): _capacity(0), _buf(NULL) {}; in CByteDynBuffer()77 size_t GetCapacity() const { return _capacity; } in GetCapacity()