C# 클래스 Stumps.StreamUtility

A class that represents a set of Stream based functions.
파일 보기 프로젝트 열기: Cayan-LLC/stumps 1 사용 예제들

공개 메소드들

메소드 설명
ConvertStreamToByteArray ( Stream stream ) : byte[]

Converts a stream to a byte array.

CopyStream ( Stream inputStream, Stream outputStream ) : void

Copies data from an input stream to an output stream.

CopyStream ( Stream inputStream, Stream outputStream, int startingPosition ) : void

Copies data from an input stream to an output stream.

WriteUtf8StringToStream ( string value, Stream stream ) : void

Writes the UTF8 string to a stream.

비공개 메소드들

메소드 설명
WriteStringToStream ( string value, Stream stream, Encoding encoding ) : void

Writes the string to a stream.

메소드 상세

ConvertStreamToByteArray() 공개 정적인 메소드

Converts a stream to a byte array.
is null.
public static ConvertStreamToByteArray ( Stream stream ) : byte[]
stream Stream The stream to convert to a byte array.
리턴 byte[]

CopyStream() 공개 정적인 메소드

Copies data from an input stream to an output stream.
public static CopyStream ( Stream inputStream, Stream outputStream ) : void
inputStream Stream The input stream.
outputStream Stream The output stream.
리턴 void

CopyStream() 공개 정적인 메소드

Copies data from an input stream to an output stream.
/// is null. /// or /// is null. ///
public static CopyStream ( Stream inputStream, Stream outputStream, int startingPosition ) : void
inputStream Stream The input stream.
outputStream Stream The output stream.
startingPosition int The starting position of the input stream.
리턴 void

WriteUtf8StringToStream() 공개 정적인 메소드

Writes the UTF8 string to a stream.
/// is null. /// or /// is null. ///
public static WriteUtf8StringToStream ( string value, Stream stream ) : void
value string The value to write to the stream.
stream Stream The stream to write to.
리턴 void