Home
last modified time | relevance | path

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

/external/zlib/src/contrib/dotzlib/DotZLib/
DCircularBuffer.cs20 private int _capacity; field in DotZLib.CircularBuffer
31 _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()
/external/lzma/CPP/Common/
DMyVector.h13 unsigned _capacity; variable
22 if (_size == _capacity) in ReserveOnePosition()
24 unsigned newCapacity = _capacity + (_capacity >> 2) + 1; in ReserveOnePosition()
30 _capacity = newCapacity; in ReserveOnePosition()
36 CRecordVector(): _items(0), _size(0), _capacity(0) {} in CRecordVector()
38 CRecordVector(const CRecordVector &v): _items(0), _size(0), _capacity(0) in CRecordVector()
45 _capacity = size; in CRecordVector()
58 _capacity = size; in ConstructReserve()
64 if (newCapacity > _capacity) in Reserve()
71 _capacity = newCapacity; in Reserve()
[all …]
/external/protobuf/objectivec/
DGPBArray.m51 //% if (NEW_COUNT > _capacity) {
57 //% if ((NEW_COUNT + (2 * kChunkSize)) < _capacity) {
72 //% NSUInteger _capacity;
111 //% _capacity = count;
251 //% _capacity = 0;
257 //% _capacity = newCapacity;
298 NSUInteger _capacity;
337 _capacity = count;
433 _capacity = 0;
439 _capacity = newCapacity;
[all …]
/external/lzma/CPP/7zip/Common/
DStreamObjects.cpp104 _capacity = 0; in Free()
109 if (cap <= _capacity) in EnsureCapacity()
112 if (_capacity > 64) in EnsureCapacity()
113 delta = _capacity / 4; in EnsureCapacity()
114 else if (_capacity > 8) in EnsureCapacity()
118 cap = MyMax(_capacity + delta, cap); in EnsureCapacity()
123 _capacity = cap; in EnsureCapacity()
DStreamObjects.h65 size_t _capacity; variable
68 CByteDynBuffer(): _capacity(0), _buf(0) {}; in CByteDynBuffer()
72 size_t GetCapacity() const { return _capacity; } in GetCapacity()
/external/clang/test/Rewriter/
Drewrite-modern-struct-ivar-1.mm13 NSUInteger _capacity; field
46 … (( self ->bar.x) ? 1 : ((_NSRangeInfo *)( self ->_internal._multipleRanges._data))->_capacity );