public void reset() {if (overflow != null) {destroy();}if (blocks != null)blocks.clear();elseblocks = new ArrayList<>(initialBlocks);blocks.add(new Block(Math.min(inCoreLimit, Block.SZ)));}
public virtual void Reset(){if (overflow != null){Destroy();}if (inCoreLimit < TemporaryBuffer.Block.SZ){blocks = new AList<TemporaryBuffer.Block>(1);blocks.AddItem(new TemporaryBuffer.Block(inCoreLimit));}else{blocks = new AList<TemporaryBuffer.Block>(inCoreLimit / TemporaryBuffer.Block.SZ);blocks.AddItem(new TemporaryBuffer.Block());}}