C# Class Brunet.Util.Base32

Datei anzeigen Open project: pstjuste/brunet Class Usage Examples

Public Properties

Property Type Description
alphabet char[]
padding char

Public Methods

Method Description
Decode ( string ascii ) : byte[]
Encode ( byte binary ) : string
Encode ( byte binary, bool pad ) : string
Encode ( byte binary, int offset, int length, bool pad ) : string
Main ( string args ) : void
ValueFor ( char c ) : int

Protected Methods

Method Description
DecodeBlock ( byte data, int offset, string ascii, int a_off, int encl ) : void
EncodeBlock ( char ascii_out, int ascii_off, byte bin, int offset, int block_length ) : void

Method Details

Decode() public static method

public static Decode ( string ascii ) : byte[]
ascii string
return byte[]

DecodeBlock() protected static method

protected static DecodeBlock ( byte data, int offset, string ascii, int a_off, int encl ) : void
data byte
offset int
ascii string
a_off int
encl int
return void

Encode() public static method

public static Encode ( byte binary ) : string
binary byte
return string

Encode() public static method

public static Encode ( byte binary, bool pad ) : string
binary byte
pad bool
return string

Encode() public static method

public static Encode ( byte binary, int offset, int length, bool pad ) : string
binary byte
offset int
length int
pad bool
return string

EncodeBlock() protected static method

protected static EncodeBlock ( char ascii_out, int ascii_off, byte bin, int offset, int block_length ) : void
ascii_out char
ascii_off int
bin byte
offset int
block_length int
return void

Main() public static method

public static Main ( string args ) : void
args string
return void

ValueFor() public static method

public static ValueFor ( char c ) : int
c char
return int

Property Details

alphabet public_oe static_oe property

public static char[] alphabet
return char[]

padding public_oe static_oe property

public static char padding
return char