public void ZeroAll() { foreach(var segment in segments.Where(x => x != IntPtr.Zero)) { MemSet(segment, (byte)0, SegmentSize); } }