[ the jinxbot project :: home | community forum | bn# | controls | mbncsutil | get the source ]
Inserts the specified value into the buffer as a C-style null-terminated string using the specified encoding.

Namespace:  MBNCSUtil
Assembly:  MBNCSUtil (in MBNCSUtil.dll) Version: 2.1.7.22 (2.1.7.22)

Syntax

C#
public void InsertCString(
	string str,
	Encoding enc
)
Visual Basic (Declaration)
Public Sub InsertCString ( _
	str As String, _
	enc As Encoding _
)
Visual C++
public:
void InsertCString(
	String^ str, 
	Encoding^ enc
)

Parameters

str
Type: System..::.String
The string value to insert.
enc
Type: System.Text..::.Encoding
The byte encoding to use.

Remarks

This method inserts a string terminated by a null character. For 8-bit character encodings such as ASCII, this null character is also 8 bits. For 16-bit character encodings such as Unicode, this null character is also 16 bits.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionEither str or enc were null (Nothing in Visual Basic).

See Also