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

Afficher le fichier Open project: nHydrate/nHydrate Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
ByteEncoding ( ) : System
GetByteCount ( string hexString ) : int
HexToByte ( string hex ) : byte

Method Details

Base64ToBytes() public static méthode

public static Base64ToBytes ( string b64String ) : byte[]
b64String string
Résultat byte[]

BytesToBase64() public static méthode

public static BytesToBase64 ( byte bytes ) : string
bytes byte
Résultat string

BytesToHex() public static méthode

public static BytesToHex ( byte bytes ) : string
bytes byte
Résultat string

BytesToString() public static méthode

public static BytesToString ( byte bytes ) : string
bytes byte
Résultat string

HexToBytes() public static méthode

public static HexToBytes ( string hexString ) : byte[]
hexString string
Résultat byte[]

HexToBytes() public static méthode

public static HexToBytes ( string hexString, int &discarded ) : byte[]
hexString string
discarded int
Résultat byte[]

InHexFormat() public static méthode

public static InHexFormat ( string hexString ) : bool
hexString string
Résultat bool

IsHexDigit() public static méthode

public static IsHexDigit ( Char c ) : bool
c Char
Résultat bool

StringToBytes() public static méthode

public static StringToBytes ( string data ) : byte[]
data string
Résultat byte[]