| /netbsd-src/external/gpl3/gdb/dist/zlib/contrib/dotzlib/DotZLib/ |
| H A D | CircularBuffer.cs | 20 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()
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/contrib/dotzlib/DotZLib/ |
| H A D | CircularBuffer.cs | 20 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()
|
| /netbsd-src/external/gpl3/gdb.old/dist/zlib/contrib/dotzlib/DotZLib/ |
| H A D | CircularBuffer.cs | 20 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()
|
| /netbsd-src/common/dist/zlib/contrib/dotzlib/DotZLib/ |
| H A D | CircularBuffer.cs | 20 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()
|
| /netbsd-src/external/gpl3/binutils/dist/zlib/contrib/dotzlib/DotZLib/ |
| H A D | CircularBuffer.cs | 20 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()
|
| /netbsd-src/external/bsd/nsd/dist/ |
| H A D | buffer.c | 34 buffer->_limit = buffer->_capacity = capacity; in buffer_create() 49 buffer->_limit = buffer->_capacity = size; in buffer_create_from() 62 buffer->_limit = buffer->_capacity; in buffer_clear() 88 buffer->_limit = buffer->_capacity = capacity; in buffer_set_capacity() 96 if (buffer->_capacity < buffer->_position + amount) { in buffer_reserve() 97 size_t new_capacity = buffer->_capacity * 3 / 2; in buffer_reserve() 103 buffer->_limit = buffer->_capacity; in buffer_reserve() 114 assert(buffer->_limit == buffer->_capacity); in buffer_printf()
|
| H A D | buffer.h | 40 size_t _capacity; member 64 assert(buffer->_limit <= buffer->_capacity); in buffer_invariant() 142 assert(limit <= buffer->_capacity); in buffer_set_limit() 152 return buffer->_capacity; in buffer_capacity()
|
| /netbsd-src/external/bsd/unbound/dist/sldns/ |
| H A D | sbuffer.c | 34 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_new() 49 buffer->_limit = buffer->_capacity = size; in sldns_buffer_new_frm_data() 69 buffer->_capacity = buffer->_limit = size; in sldns_buffer_init_frm_data() 87 buffer->_limit = buffer->_capacity = capacity; in sldns_buffer_set_capacity() 97 if (buffer->_capacity < buffer->_position + amount) { in sldns_buffer_reserve() 98 size_t new_capacity = buffer->_capacity * 3 / 2; in sldns_buffer_reserve() 108 buffer->_limit = buffer->_capacity; in sldns_buffer_reserve() 121 assert(buffer->_limit == buffer->_capacity); in sldns_buffer_printf()
|
| H A D | sbuffer.h | 125 size_t _capacity; member 151 assert(buffer->_limit <= buffer->_capacity); in sldns_buffer_invariant() 196 buffer->_limit = buffer->_capacity; in sldns_buffer_clear() 284 assert(limit <= buffer->_capacity); in sldns_buffer_set_limit() 298 return buffer->_capacity; in sldns_buffer_capacity()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/container/ |
| H A D | array.d | 265 size_t _capacity; member 268 this(T[] p) { _capacity = p.length; _payload = p; } in this() 309 if (_capacity < newLength) in length() 319 _capacity = newLength; in length() 330 return _capacity; in capacity() 373 _capacity = elements; in reserve() 381 if (_capacity == length) 526 return _data.refCountedStore.isInitialized ? _data._capacity : 0; in capacity() 556 _data._capacity = elements; in reserve()
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/container/ |
| H A D | array.d | 400 size_t _capacity; 403 this(T[] p) { _capacity = p.length; _payload = p; } 461 return _capacity; 509 _capacity = elements; 517 assert(_capacity >= length); 518 if (_capacity == length) 687 return _data.refCountedStore.isInitialized ? _data._capacity : 0;
|