private GetIntBlock ( bool trackAllocations ) : int[] | ||
trackAllocations | bool | |
return | int[] |
public void NextBuffer() { if (1 + bufferUpto == buffers.Length) { Array.Resize(ref buffers, (int)(buffers.Length * 1.5)); } buffer = buffers[1 + bufferUpto] = docWriter.GetIntBlock(trackAllocations); bufferUpto++; intUpto = 0; intOffset += DocumentsWriter.INT_BLOCK_SIZE; }
public void NextBuffer() { if (1 + bufferUpto == buffers.Length) { int[][] newBuffers = new int[(int)(buffers.Length * 1.5)][]; Array.Copy(buffers, 0, newBuffers, 0, buffers.Length); buffers = newBuffers; } buffer = buffers[1 + bufferUpto] = docWriter.GetIntBlock(trackAllocations); bufferUpto++; intUpto = 0; intOffset += DocumentsWriter.INT_BLOCK_SIZE; }