C# 클래스 dotGit.Generic.HexEncoding

Summary description for HexEncoding.
파일 보기 프로젝트 열기: schacon/dotgit 1 사용 예제들

공개 메소드들

메소드 설명
GetByteCount ( string hexString ) : int
GetBytes ( string hexString, int &discarded ) : byte[]

Creates a byte array from the hexadecimal string. Each two characters are combined to create one byte. First two hexadecimal characters become first byte in returned array. Non-hexadecimal characters are ignored.

HexEncoding ( ) : System
InHexFormat ( string hexString ) : bool

Determines if given string is in proper hexadecimal string format

IsHexDigit ( Char c ) : bool

Returns true is c is a hexadecimal digit (A-F, a-f, 0-9)

ToString ( byte bytes ) : string

비공개 메소드들

메소드 설명
HexToByte ( string hex ) : byte

Converts 1 or 2 character string into equivalant byte value

메소드 상세

GetByteCount() 공개 정적인 메소드

public static GetByteCount ( string hexString ) : int
hexString string
리턴 int

GetBytes() 공개 정적인 메소드

Creates a byte array from the hexadecimal string. Each two characters are combined to create one byte. First two hexadecimal characters become first byte in returned array. Non-hexadecimal characters are ignored.
public static GetBytes ( string hexString, int &discarded ) : byte[]
hexString string string to convert to byte array
discarded int number of characters in string ignored
리턴 byte[]

HexEncoding() 공개 메소드

public HexEncoding ( ) : System
리턴 System

InHexFormat() 공개 정적인 메소드

Determines if given string is in proper hexadecimal string format
public static InHexFormat ( string hexString ) : bool
hexString string
리턴 bool

IsHexDigit() 공개 정적인 메소드

Returns true is c is a hexadecimal digit (A-F, a-f, 0-9)
public static IsHexDigit ( Char c ) : bool
c Char Character to test
리턴 bool

ToString() 공개 정적인 메소드

public static ToString ( byte bytes ) : string
bytes byte
리턴 string