C# Class nHydrate.Generator.Common.Util.ByteEncoding

Exibir arquivo Open project: nHydrate/nHydrate Class Usage Examples

Public Methods

Method Description
Base64ToBytes ( string b64String ) : byte[]
BytesToBase64 ( byte bytes ) : string
BytesToHex ( byte bytes ) : string
BytesToString ( byte bytes ) : string
HexToBytes ( string hexString ) : byte[]
HexToBytes ( string hexString, int &discarded ) : byte[]
InHexFormat ( string hexString ) : bool
IsHexDigit ( Char c ) : bool
StringToBytes ( string data ) : byte[]

Private Methods

Method Description
ByteEncoding ( ) : System
GetByteCount ( string hexString ) : int
HexToByte ( string hex ) : byte

Method Details

Base64ToBytes() public static method

public static Base64ToBytes ( string b64String ) : byte[]
b64String string
return byte[]

BytesToBase64() public static method

public static BytesToBase64 ( byte bytes ) : string
bytes byte
return string

BytesToHex() public static method

public static BytesToHex ( byte bytes ) : string
bytes byte
return string

BytesToString() public static method

public static BytesToString ( byte bytes ) : string
bytes byte
return string

HexToBytes() public static method

public static HexToBytes ( string hexString ) : byte[]
hexString string
return byte[]

HexToBytes() public static method

public static HexToBytes ( string hexString, int &discarded ) : byte[]
hexString string
discarded int
return byte[]

InHexFormat() public static method

public static InHexFormat ( string hexString ) : bool
hexString string
return bool

IsHexDigit() public static method

public static IsHexDigit ( Char c ) : bool
c Char
return bool

StringToBytes() public static method

public static StringToBytes ( string data ) : byte[]
data string
return byte[]