GetIntBlock() private method

private GetIntBlock ( bool trackAllocations ) : int[]
trackAllocations bool
return int[]
示例#1
0
        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;
        }
示例#2
0
        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;
        }