C# 클래스 Simple.StreamExtensions

파일 보기 프로젝트 열기: juanplopes/simple

공개 메소드들

메소드 설명
ToByteArray ( this stream, int initialLength ) : byte[]

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.

ToStream ( this str ) : StringStream
ToStream ( this str, Encoding encoding ) : StringStream

메소드 상세

ToByteArray() 공개 정적인 메소드

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.
public static ToByteArray ( this stream, int initialLength ) : byte[]
stream this The stream to read data from
initialLength int The initial buffer length
리턴 byte[]

ToStream() 공개 정적인 메소드

public static ToStream ( this str ) : StringStream
str this
리턴 StringStream

ToStream() 공개 정적인 메소드

public static ToStream ( this str, Encoding encoding ) : StringStream
str this
encoding System.Text.Encoding
리턴 StringStream