[ the jinxbot project :: home | community forum | bn# | controls | mbncsutil | get the source ]
Assembly: MBNCSUtil (in MBNCSUtil.dll) Version: 2.1.7.22 (2.1.7.22)
Inserts the specified value into the buffer as a pascal-style string using
the specified encoding.
Namespace:
MBNCSUtilAssembly: 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
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Either str or enc were null (Nothing in Visual Basic). |
| System..::.ArgumentException | The length of str was too great; maximum string length is 255 characters. |