public CheapState(CheapState other) { region = other.region; regionSize = other.regionSize; used = 0; read = 0; indent = 0; loadPtrs = new object[16 * 1024]; latest = this; }
public CheapState(int indent) { used = 0; read = 0; this.indent = indent; loadPtrs = new object[128 * 1024]; regionSize = 8 * 1024 * 1024; region = VirtualAlloc(0, regionSize, MEM_COMMIT, PAGE_READWRITE); Console.WriteLine("Region = {0:x8}", region); latest = this; }