Home
last modified time | relevance | path

Searched refs:_capacity (Results 1 – 8 of 8) 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()
32 _capacity = newCapacity; in ReserveOnePosition()
38 CRecordVector(): _items(0), _size(0), _capacity(0) {} in CRecordVector()
40 CRecordVector(const CRecordVector &v): _items(0), _size(0), _capacity(0) in CRecordVector()
47 _capacity = size; in CRecordVector()
61 _capacity = size; in ConstructReserve()
67 if (newCapacity > _capacity) in Reserve()
76 _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/tensorflow/tensorflow/python/debug/cli/
Dcurses_widgets.py62 self._capacity = capacity
78 if len(self._items) > self._capacity:
79 self._items = self._items[-self._capacity:]
/external/tensorflow/tensorflow/python/ops/
Ddata_flow_ops.py1526 self._capacity = capacity
1556 return self._capacity
1814 capacity=self._capacity,
1854 capacity=self._capacity,
1884 name=name, capacity=self._capacity,
1906 capacity=self._capacity,
1925 capacity=self._capacity,
2087 capacity=self._capacity,
2151 capacity=self._capacity,
2212 capacity=self._capacity,
[all …]
/external/clang/test/Rewriter/
Drewrite-modern-struct-ivar-1.mm13 NSUInteger _capacity; field
46 … (( self ->bar.x) ? 1 : ((_NSRangeInfo *)( self ->_internal._multipleRanges._data))->_capacity );