public void reset(boolean zeroFillBuffers, boolean reuseFirst) {if (bufferUpto != -1) {if (zeroFillBuffers) {for(int i=0;i<bufferUpto;i++) {Arrays.fill(buffers[i], 0);}Arrays.fill(buffers[bufferUpto], 0, intUpto, 0);}if (bufferUpto > 0 || !reuseFirst) {final int offset = reuseFirst ? 1 : 0;allocator.recycleIntBlocks(buffers, offset, 1+bufferUpto);Arrays.fill(buffers, offset, bufferUpto+1, null);}if (reuseFirst) {bufferUpto = 0;intUpto = 0;intOffset = 0;buffer = buffers[0];} else {bufferUpto = -1;intUpto = INT_BLOCK_SIZE;intOffset = -INT_BLOCK_SIZE;buffer = null;}}}
public void Reset(bool zeroFillBuffers, bool reuseFirst){if (bufferUpto != -1){if (zeroFillBuffers){for (int i = 0; i < bufferUpto; i++){Arrays.Fill(buffers[i], 0);}Arrays.Fill(buffers[bufferUpto], 0, Int32Upto, 0);}if (bufferUpto > 0 || !reuseFirst){int offset = reuseFirst ? 1 : 0;allocator.RecycleInt32Blocks(buffers, offset, 1 + bufferUpto);Arrays.Fill(buffers, offset, bufferUpto + 1, null);}if (reuseFirst){bufferUpto = 0;Int32Upto = 0;Int32Offset = 0;buffer = buffers[0];}else{bufferUpto = -1;Int32Upto = INT32_BLOCK_SIZE;Int32Offset = -INT32_BLOCK_SIZE;buffer = null;}}}