GetReader() public method

Reuse same text reader on this stream.
public GetReader ( ) : TextReader
return TextReader
コード例 #1
0
        /// <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);
        }
コード例 #2
0
ファイル: ChunkedMemoryStream.cs プロジェクト: dstimac/revenj
		/// <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;
		}