TypedString Constructor Method

Initializes a new instance of the TypedString class

public TypedString(

long size

);

public TypedString(

string str

);

 

Remarks

This method calls the TypedBuffer constructor to allocate an unmanaged "STRING" typed buffer specified by the argument size (per byte) or str.Length property per ANSI character.

 

TypedString.GetString Method

Gets a specified number of ANSI characters from the specified byte in the buffer in this instance and returns them as a string.

public string GetString(

int start,

int len

);

      

       Gets the complete string value of this instance.

public string GetString( );

      

 

Remarks

 

TypedString.PutString Method

Copies a sub-string to a specified position (per byte) in the typed buffer.

public int PutString(

int start,

string str,

int len

);

 

       Copies a string to the beginning of this instance. If the string length (per byte) is larger that the instance buffer size, the string value is truncated.

public int PutString(

       string str

       );

 

 

Remarks