C# 클래스 Redu.Util.Ascii85

C# implementation of ASCII85 encoding. Based on C code from http://www.stillhq.com/cgi-bin/cvsweb/ascii85/
Jeff Atwood http://www.codinghorror.com/blog/archives/000410.html
파일 보기 프로젝트 열기: arccoza/redu

공개 프로퍼티들

프로퍼티 타입 설명
EnforceMarks bool
LineLength int
PrefixMark string
SuffixMark string

공개 메소드들

메소드 설명
Decode ( string s ) : byte[]

Decodes an ASCII85 encoded string into the original binary data

Encode ( byte ba ) : string

Encodes binary data into a plaintext ASCII85 format string

비공개 메소드들

메소드 설명
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

메소드 상세

Decode() 공개 메소드

Decodes an ASCII85 encoded string into the original binary data
public Decode ( string s ) : byte[]
s string ASCII85 encoded string
리턴 byte[]

Encode() 공개 메소드

Encodes binary data into a plaintext ASCII85 format string
public Encode ( byte ba ) : string
ba byte binary data to encode
리턴 string

프로퍼티 상세

EnforceMarks 공개적으로 프로퍼티

Add the Prefix and Suffix marks when encoding, and enforce their presence for decoding
public bool EnforceMarks
리턴 bool

LineLength 공개적으로 프로퍼티

Maximum line length for encoded ASCII85 string; set to zero for one unbroken line.
public int LineLength
리턴 int

PrefixMark 공개적으로 프로퍼티

Prefix mark that identifies an encoded ASCII85 string, traditionally '<~'
public string PrefixMark
리턴 string

SuffixMark 공개적으로 프로퍼티

Suffix mark that identifies an encoded ASCII85 string, traditionally '~>'
public string SuffixMark
리턴 string