/// <summary> /// creates a new OneTimeStream with the given fragmentation (the internal buffer size) /// </summary> /// <param name="fragmentation"> /// the size of the internal buffering. /// Should have no impact on the api, but can change performance /// </param> public OneTimeStream(int fragmentation) { this.buffer = new OneTimeBuffer<byte>(fragmentation); }
protected override void Dispose(bool disposing) { if (this.isDisposed) return; if (disposing) { this.buffer = null; } this.isDisposed = true; base.Dispose(disposing); }