C# Class BaseNcoding.BaseBigN

Inheritance: Base
Show file Open project: KvanTTT/BaseNcoding

Public Methods

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

Private Methods

Method Description
AddBitsN ( byte data, System.Numerics.BigInteger value, int bitPos, int bitsCount ) : void
BaseBigN ( ) : System
BitsToChars ( char chars, int ind, int count, System.Numerics.BigInteger block ) : void
CharsToBits ( string data, int ind, int count ) : System.Numerics.BigInteger
DecodeBlock ( string src, byte dst, int beginInd, int endInd, int blockBitsCount, int blockCharsCount ) : void
EncodeBlock ( byte src, char dst, int beginInd, int endInd, int blockBitsCount, int blockCharsCount ) : void
GetBitsN ( byte data, int bitPos, int bitsCount ) : System.Numerics.BigInteger
PreparePowN ( int blockCharsCount ) : void

Method Details

BaseBigN() public method

public BaseBigN ( string alphabet, uint blockMaxBitsCount = 64, Encoding encoding = null, bool reverseOrder = false, bool parallel = false, bool maxCompression = false ) : System
alphabet string
blockMaxBitsCount uint
encoding System.Text.Encoding
reverseOrder bool
parallel bool
maxCompression 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