[ the jinxbot project :: home | community forum | bn# | controls | mbncsutil | get the source ]
Inserts the specified value into the buffer as a 32-bit-style string using the specified byte as padding.

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

Syntax

C#
public void InsertDwordString(
	string str,
	byte padding
)
Visual Basic (Declaration)
Public Sub InsertDwordString ( _
	str As String, _
	padding As Byte _
)
Visual C++
public:
void InsertDwordString(
	String^ str, 
	unsigned char padding
)

Parameters

str
Type: System..::.String
The string which may be at most 4 characters.
padding
Type: System..::.Byte
The byte which shall be used to pad the string if it is less than 4 characters long.

Remarks

This method inserts a string with the maximum length of 4 into the buffer, reversed. This mimics the C-style declarations of 4-character integer literals:

CopyC#
1unsigned long int star_product = 'STAR';

which results in RATS being in memory.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThe str parameter was null (Nothing in Visual Basic).
System..::.ArgumentExceptionThe length of str was too great; maximum string length is 4 characters.

See Also