public IBufferManager newSingletonBufferManager(Configuration config) { return new BufferManager(config); } }
int log_curr = calcLog(current.length); doReturnBuffer(s, current, threshold);
bufferPool = initBufferPool(configuration, maxManagedBufferSize); int position = calcLog(sizes[i]) - MIN_CACHE ; storeBuffer(position, new byte[sizes[i]]);
final int log = calcLog(size); result = doFetchBuffer(s);
public byte[] getExpandedBuffer( int size ) { if (size < 0) { throw new INTERNAL ("Unable to cache and create buffer of negative size. Possible overflow issue."); } // Use the expansion policy if available if (expansionPolicy != null) { size = expansionPolicy.getExpandedSize (size); } return getBuffer (size); }