C# 클래스 Tickster.Utils.HexTranslator

파일 보기 프로젝트 열기: tickster/Tickster.Utilities

공개 메소드들

메소드 설명
ToBytes ( string hex ) : byte[]

Converts a sequence of hexadecimal pairs into a byte array, ie F0 will yield [ 255 ] and FF00 will yield [ 255, 0 ]. This is the inverse function of ToHex(byte[] buffer)

ToHex ( byte buffer ) : string

"Hexifies" a byte array

ToHex ( byte buffer, int offset, int length ) : string

"Hexifies" a byte array

ToHex ( int value ) : string

"Hexifies" an integer

메소드 상세

ToBytes() 공개 정적인 메소드

Converts a sequence of hexadecimal pairs into a byte array, ie F0 will yield [ 255 ] and FF00 will yield [ 255, 0 ]. This is the inverse function of ToHex(byte[] buffer)
public static ToBytes ( string hex ) : byte[]
hex string
리턴 byte[]

ToHex() 공개 정적인 메소드

"Hexifies" a byte array
public static ToHex ( byte buffer ) : string
buffer byte
리턴 string

ToHex() 공개 정적인 메소드

"Hexifies" a byte array
public static ToHex ( byte buffer, int offset, int length ) : string
buffer byte
offset int
length int
리턴 string

ToHex() 공개 정적인 메소드

"Hexifies" an integer
public static ToHex ( int value ) : string
value int
리턴 string