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

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

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

Метод Описание
GZipDecompress ( this data, string encodingName = "utf-8" ) : string

Decompress a string using GZip and the specific encoding. Defaults to UTF-8

GetMime ( this data ) : string

Use MIME magic to find the MIME type of this data block. This should be the first 256 bytes of a file

ToHex ( this bytes ) : string

Returns a byte array as a hexadecimal string. No byte separators (such as spaces or dashes)

Приватные методы

Метод Описание
FindMimeFromData ( uint pBC, [ pwzUrl, [ pBuffer, uint cbSize, [ pwzMimeProposed, uint dwMimeFlags, uint &ppwzMimeOut, uint dwReserverd ) : uint

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

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

Decompress a string using GZip and the specific encoding. Defaults to UTF-8
public static GZipDecompress ( this data, string encodingName = "utf-8" ) : string
data this
encodingName string
Результат string

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

Use MIME magic to find the MIME type of this data block. This should be the first 256 bytes of a file
public static GetMime ( this data ) : string
data this
Результат string

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

Returns a byte array as a hexadecimal string. No byte separators (such as spaces or dashes)
public static ToHex ( this bytes ) : string
bytes this
Результат string