20 namespace Lucene.Net.Index
25 private void InitBlock()
30 public char[][] buffers =
new char[10][];
31 internal int numBuffer;
33 internal int bufferUpto = - 1;
43 this.docWriter = docWriter;
48 docWriter.RecycleCharBlocks(buffers, 1 + bufferUpto);
54 public void NextBuffer()
56 if (1 + bufferUpto == buffers.Length)
58 var newBuffers =
new char[(int) (buffers.Length * 1.5)][];
59 Array.Copy(buffers, 0, newBuffers, 0, buffers.Length);
62 buffer = buffers[1 + bufferUpto] = docWriter.GetCharBlock();