/// <summary> /// Create reusable stream. /// Disposing the stream only has the effect of resetting it. /// </summary> /// <returns></returns> public static ChunkedMemoryStream Static() { var cms = new ChunkedMemoryStream(new byte[BlockSize]); cms.GetReader(); cms.GetWriter(); cms.UseBufferedReader(string.Empty); return(cms); }
/// <summary> /// Create reusable stream. /// Disposing the stream only has the effect of resetting it. /// </summary> /// <returns></returns> public static ChunkedMemoryStream Static() { var cms = new ChunkedMemoryStream(new byte[BlockSize]); cms.GetReader(); cms.GetWriter(); cms.UseBufferedReader(string.Empty); return cms; }