C# Класс Simple.StreamExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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