C# 클래스 NContrib.Extensions.ByteExtensions

파일 보기 프로젝트 열기: veracross/ncontrib

공개 메소드들

메소드 설명
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