/external/lzma/CPP/Common/ |
DynamicBuffer.h | 13 if (this->_capacity > 64)
14 delta = this->_capacity / 4;
15 else if (this->_capacity > 8)
20 size_t newCap = this->_capacity + delta;
22 newCap = this->_capacity + size;
32 if (buffer._capacity > 0)
34 SetCapacity(buffer._capacity);
35 memmove(this->_items, buffer._items, buffer._capacity * sizeof(T));
41 if (this->_capacity < capacity)
42 GrowLength(capacity - this->_capacity);
[all...] |
Buffer.h | 11 size_t _capacity;
member in class:CBuffer 18 _capacity = 0;
20 CBuffer(): _capacity(0), _items(0) {};
21 CBuffer(const CBuffer &buffer): _capacity(0), _items(0) { *this = buffer; }
22 CBuffer(size_t size): _items(0), _capacity(0) { SetCapacity(size); }
26 size_t GetCapacity() const { return _capacity; }
29 if (newCapacity == _capacity)
35 if (_capacity > 0)
36 memmove(newBuffer, _items, MyMin(_capacity, newCapacity) * sizeof(T));
42 _capacity = newCapacity; [all...] |
MyVector.cpp | 15 _capacity = 0;
26 if (_size != _capacity)
29 if (_capacity >= 64)
30 delta = (unsigned)_capacity / 4;
31 else if (_capacity >= 8)
33 Reserve(_capacity + (int)delta);
38 // if (newCapacity <= _capacity)
39 if (newCapacity == _capacity)
57 _capacity = newCapacity;
|
MyString.h | 160 int _capacity;
member in class:CStringBase 165 if (realCapacity == _capacity)
173 if (_capacity > 0)
181 _capacity = realCapacity;
186 int freeSize = _capacity - _length - 1;
190 if (_capacity > 64)
191 delta = _capacity / 2;
192 else if (_capacity > 8)
198 SetCapacity(_capacity + delta);
208 CStringBase(): _chars(0), _length(0), _capacity(0) { SetCapacity(3); } [all...] |
MyVector.h | 12 int _capacity;
member in class:CBaseRecordVector 22 CBaseRecordVector(size_t itemSize): _capacity(0), _size(0), _items(0), _itemSize(itemSize) {}
|
/external/arduino/hardware/arduino/cores/arduino/ |
WString.h | 40 ~String() { free(_buffer); _length = _capacity = 0;} //added _length = _capacity = 0; 89 unsigned int _capacity; // the array length minus one (for the '\0') member in class:String 101 _capacity = maxStrLen; 102 _buffer = (char *) malloc(_capacity + 1); 103 if (_buffer == NULL) _length = _capacity = 0;
|
WString.cpp | 140 // if ( _length == _capacity ) 151 if ( _length > _capacity ) 156 _capacity = _length;
|
/external/lzma/CPP/7zip/Common/ |
StreamObjects.cpp | 45 _capacity = 0;
50 if (cap <= _capacity)
53 if (_capacity > 64)
54 delta = _capacity / 4;
55 else if (_capacity > 8)
59 cap = MyMax(_capacity + delta, cap);
64 _capacity = cap;
|
StreamObjects.h | 43 size_t _capacity;
member in class:CByteDynBuffer 46 CByteDynBuffer(): _capacity(0), _buf(0) {};
50 size_t GetCapacity() const { return _capacity; }
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/ |
lru_cache.py | 47 self._capacity = capacity 55 if len(self._dict) >= self._capacity: 57 if self._capacity == 1:
|