C# Class BusinessCats.Ascii85

Afficher le fichier Open project: adzm/BusinessCats Class Usage Examples

Méthodes publiques

Свойство Type Description
EnforceMarks bool
LineLength int
PrefixMark string
SuffixMark string

Méthodes publiques

Méthode Description
Decode ( string data ) : byte[]

simple Decode with default values

DecodeData ( string s ) : byte[]

Decodes an ASCII85 encoded string into the original binary data

Encode ( byte data ) : string

simple Encode with default values

EncodeData ( byte ba ) : string

Encodes binary data into a plaintext ASCII85 format string

Private Methods

Méthode Description
AppendChar ( StringBuilder sb, char c ) : void
AppendString ( StringBuilder sb, string s ) : void
DecodeBlock ( ) : void
DecodeBlock ( int bytes ) : void
EncodeBlock ( StringBuilder sb ) : void
EncodeBlock ( int count, StringBuilder sb ) : void

Method Details

Decode() public static méthode

simple Decode with default values
public static Decode ( string data ) : byte[]
data string
Résultat byte[]

DecodeData() public méthode

Decodes an ASCII85 encoded string into the original binary data
public DecodeData ( string s ) : byte[]
s string ASCII85 encoded string
Résultat byte[]

Encode() public static méthode

simple Encode with default values
public static Encode ( byte data ) : string
data byte
Résultat string

EncodeData() public méthode

Encodes binary data into a plaintext ASCII85 format string
public EncodeData ( byte ba ) : string
ba byte binary data to encode
Résultat string

Property Details

EnforceMarks public_oe property

Add the Prefix and Suffix marks when encoding, and enforce their presence for decoding
public bool EnforceMarks
Résultat bool

LineLength public_oe property

Maximum line length for encoded ASCII85 string; set to zero for one unbroken line.
public int LineLength
Résultat int

PrefixMark public_oe property

Prefix mark that identifies an encoded ASCII85 string, traditionally '<~'
public string PrefixMark
Résultat string

SuffixMark public_oe property

Suffix mark that identifies an encoded ASCII85 string, traditionally '~>'
public string SuffixMark
Résultat string