Mercury API
SetBits Method (raw, offset, length, value, desc)
NamespacesThingMagicByteConvSetBits(UInt32%, Int32, Int32, UInt32, String)
Set bits within an integer.
Declaration Syntax
C#Visual BasicVisual C++
public static void SetBits(
	ref uint raw,
	int offset,
	int length,
	uint value,
	string desc
)
Public Shared Sub SetBits ( _
	ByRef raw As UInteger, _
	offset As Integer, _
	length As Integer, _
	value As UInteger, _
	desc As String _
)
public:
static void SetBits(
	unsigned int% raw, 
	int offset, 
	int length, 
	unsigned int value, 
	String^ desc
)
Parameters
raw ( UInt32 %)
Integer to modify
offset (Int32)
Offset of least-significant bit to modify
length (Int32)
Number of bits to modify
value (UInt32)
Value to assign to target bits
desc (String)
Human-readable description of bits (for error messages)

Assembly: MercuryAPI (Module: MercuryAPI) Version: 1.29.4.34 (1.29.4.34)