public void Dispose() { if (IsDisposing) { return; } HStream.Close(); WriteStream.Dispose(); }
public void Clear() { WriteStream.Close(); HStream.Close(); File.Delete(HPath); HStream = new FileStream(HPath, FileMode.OpenOrCreate, FileAccess.ReadWrite); ReadOffset = 0; WriteStream = new StreamWriter(HStream, Encoding.UTF8, 256, true); HBuffer.Clear(); }