C# Класс NContrib.Extensions.StreamExtensions

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

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

Метод Описание
GetMime ( this stream ) : string

Use MIME magic to find the MIME type for this stream.

256 bytes (or the total number of bytes in the stream if 256 are not available) are read from the current stream location to detect the MIME type. If the stream support seeking, the stream position will be moved back after the sample is taken.

ReadAllBytes ( this stream, int bufferSize = 32768 ) : byte[]

Reads the entire contents of a stream into a byte array

Описание методов

GetMime() публичный статический Метод

Use MIME magic to find the MIME type for this stream.
256 bytes (or the total number of bytes in the stream if 256 are not available) are read from the current stream location to detect the MIME type. If the stream support seeking, the stream position will be moved back after the sample is taken.
public static GetMime ( this stream ) : string
stream this
Результат string

ReadAllBytes() публичный статический Метод

Reads the entire contents of a stream into a byte array
public static ReadAllBytes ( this stream, int bufferSize = 32768 ) : byte[]
stream this
bufferSize int
Результат byte[]