TypedString Constructor Method

Initializes a new instance of the TypedString class

public TypedString(

long size

);

public TypedString(

string str

);

 

Remarks

This method calls the construtor of TypedBuffer to allocated an unmanaged typed buffer of type “STRING” with a size specified by argument size or str.Length property.

 

TypedString.GetString Method

Gets a specified number of ANSI characters from the start of 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 of 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 is larger that the instance buffer size, the string value will be truncated.

public int PutString(

       string str

       );

 

 

Remarks