C# Class BaseNcoding.BaseN

Inheritance: Base
Mostrar archivo Open project: KvanTTT/BaseNcoding

Public Methods

Method Description
BaseN ( string alphabet, uint blockMaxBitsCount = 32, Encoding encoding = null, bool reverseOrder = false, bool parallel = false ) : System
Decode ( string data ) : byte[]
Encode ( byte data ) : string

Private Methods

Method Description
AddBits64 ( byte data, ulong value, int bitPos, int bitsCount ) : void
BitsToChars ( char chars, int ind, int count, ulong block ) : void
CharsToBits ( string data, int ind, int count ) : ulong
DecodeBlock ( string src, byte dst, int beginInd, int endInd ) : void
EncodeBlock ( byte src, char dst, int beginInd, int endInd ) : void
GetBits64 ( byte data, int bitPos, int bitsCount ) : ulong

Method Details

BaseN() public method

public BaseN ( string alphabet, uint blockMaxBitsCount = 32, Encoding encoding = null, bool reverseOrder = false, bool parallel = false ) : System
alphabet string
blockMaxBitsCount uint
encoding System.Text.Encoding
reverseOrder bool
parallel bool
return System

Decode() public method

public Decode ( string data ) : byte[]
data string
return byte[]

Encode() public method

public Encode ( byte data ) : string
data byte
return string