[ the jinxbot project :: home | community forum | bn# | controls | mbncsutil | get the source ]
Inserts the specified value into the buffer as a pascal-style 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 InsertPascalString(
	string str,
	Encoding enc
)
Visual Basic (Declaration)
Public Sub InsertPascalString ( _
	str As String, _
	enc As Encoding _
)
Visual C++
public:
void InsertPascalString(
	String^ str, 
	Encoding^ enc
)

Parameters

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

Remarks

This method inserts a string prefixed by the total number of characters in the string. At most a string may be 255 characters.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionEither str or enc were null (Nothing in Visual Basic).
System..::.ArgumentExceptionThe length of str was too great; maximum string length is 255 characters.

See Also