Searched refs:_capacity (Results 1 - 10 of 10) sorted by relevance
/macosx-10.10.1/zlib-55/zlib/contrib/dotzlib/DotZLib/ |
H A D | CircularBuffer.cs | 20 private int _capacity;
field in class:DotZLib.CircularBuffer 31 _capacity = capacity;
42 int trueCount = Math.Min(count, _capacity - Size);
44 _buffer[(_tail+i) % _capacity] = source[offset+i];
46 _tail %= _capacity;
53 if (Size == _capacity) // no room
56 _tail %= _capacity;
65 destination[offset + i] = _buffer[(_head+i) % _capacity];
67 _head %= _capacity;
77 int result = (int)_buffer[_head++ % _capacity];
[all...] |
/macosx-10.10.1/libauto-186/ |
H A D | PointerHash.cpp | 39 if (_count*3 > _capacity*2) { 40 grow(_capacity * 2); // double when at 2/3 capacity 41 } else if ((_count + _removed + 8) >= _capacity) { 56 if (index == _capacity) 92 if (slot < _capacity) { 101 index = (index == 0 ? _capacity - 1 : index - 1); 124 uint32_t old_capacity = _capacity; 131 if (_capacity != newCapacity) { 132 _capacity = newCapacity; 133 assert(is_power_of_2(_capacity)); [all...] |
H A D | PointerHash.h | 46 uint32_t _capacity; member in class:Auto::PointerHash 59 PointerHash(uint32_t initialCapacity) : _pointers(NULL), _capacity(0), _capacityMask(0), _count(0), _removed(0), _firstOccupiedSlot(0), _lastOccupiedSlot(0), _maxRunLength(0) { if (initialCapacity > 0) grow(initialCapacity * 4); }; 74 inline uint32_t capacity() const { return _capacity; }
|
H A D | Definitions.h | 810 usword_t _capacity; member in class:Auto::PointerArray 814 PointerArray() : _count(0), _capacity(0), _buffer(NULL) {} 815 PointerArray(MemoryAllocator allocator) : _count(0), _capacity(0), _buffer(NULL), _allocator(allocator) {} 816 ~PointerArray() { if (_buffer) _allocator.deallocate_memory(_buffer, _capacity * sizeof(void *)); } 822 usword_t size() { return _capacity * sizeof(void*); } 824 void uncommit() { if (_buffer) uncommit_memory(_buffer, _capacity * sizeof(void*)); } 825 void commit() { if (_buffer) commit_memory(_buffer, _capacity * sizeof(void*)); } 830 _capacity = page_size / sizeof(void*); 834 vm_size_t old_size = _capacity * sizeof(void *); 837 auto_fatal("PointerArray::grow() _capacity [all...] |
/macosx-10.10.1/objc4-646/runtime/ |
H A D | objc-sel-set.mm | 84 uint32_t _capacity; /* maximum number of used slots */ 133 sset->_capacity = __objc_sel_set_capacities[idx]; 147 if (sset->_count == sset->_capacity) { 153 sset->_capacity = __objc_sel_set_capacities[idx];
|
/macosx-10.10.1/xnu-2782.1.97/iokit/Kernel/ |
H A D | IOBufferMemoryDescriptor.cpp | 127 _capacity = capacity; 284 _ranges.v64->length = _capacity; 318 setLength(_capacity); 472 vm_size_t size = _capacity; 539 return _capacity; 554 assert(length <= _capacity); 585 vm_size_t actualBytesToCopy = min(withLength, _capacity - _length); 588 assert(_length <= _capacity);
|
H A D | IORangeAllocator.cpp | 68 UInt32 _capacity, 74 if( !_capacity) 75 _capacity = 1; 79 capacityIncrement = _capacity; 66 init( IORangeScalar endOfRange, IORangeScalar _defaultAlignment, UInt32 _capacity, IOOptionBits _options ) argument
|
/macosx-10.10.1/IOHIDFamily-606.1.7/IOHIDFamily/ |
H A D | IOHIDEvent.cpp | 49 if (_data && (!capacity || _capacity < capacity) ) { 51 IOFree(_data, _capacity); 55 _capacity = capacity; 57 if ( !_capacity ) 60 if ( !_data && !(_data = (IOHIDEventData *) IOMalloc(_capacity))) 63 bzero(_data, _capacity); 64 _data->size = _capacity; 109 if (_capacity != EXTERNAL && _data && _capacity) { 110 IOFree(_data, _capacity); [all...] |
H A D | IOHIDEvent.h | 46 size_t _capacity; member in class:IOHIDEvent
|
/macosx-10.10.1/xnu-2782.1.97/iokit/IOKit/ |
H A D | IOBufferMemoryDescriptor.h | 76 vm_size_t _capacity; member in class:IOBufferMemoryDescriptor
|
Completed in 102 milliseconds