C# Class Majestic12.DynaString

Class for fast dynamic string building - it is faster than StringBuilder
Inheritance: IDisposable
Afficher le fichier Open project: arktronic/sevenauth Class Usage Examples

Méthodes publiques

Свойство Type Description
TEXT_CAPACITY int
bBuffer byte[]
iBufPos int
sText string

Méthodes publiques

Méthode Description
Append ( char cChar ) : void

Appends proper char with smart handling of Unicode chars

Clear ( ) : void

Resets object to zero length string

Dispose ( ) : void
SetEncoding ( Encoding p_oEnc ) : void

Sets encoding to be used for conversion of binary data into string

Private Methods

Méthode Description
Dispose ( bool bDisposing ) : void
DynaString ( string sString ) : System

Constructor

SetToString ( ) : string

Creates string from buffer using set encoder

SetToStringASCII ( ) : string

Creates string from buffer using default encoder

Method Details

Append() public méthode

Appends proper char with smart handling of Unicode chars
public Append ( char cChar ) : void
cChar char Char to append
Résultat void

Clear() public méthode

Resets object to zero length string
public Clear ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

SetEncoding() public méthode

Sets encoding to be used for conversion of binary data into string
public SetEncoding ( Encoding p_oEnc ) : void
p_oEnc System.Text.Encoding Encoding object
Résultat void

Property Details

TEXT_CAPACITY public_oe static_oe property

CRITICAL: that much capacity will be allocated (once) for this object -- for performance reasons we do NOT have range checks because we make reasonably safe assumption that accumulated string will fit into the buffer. If you have very abnormal strings then you should increase buffer accordingly.
public static int TEXT_CAPACITY
Résultat int

bBuffer public_oe property

public byte[] bBuffer
Résultat byte[]

iBufPos public_oe property

public int iBufPos
Résultat int

sText public_oe property

Finalised text will be available in this string
public string sText
Résultat string