Mercury API
SetBits Method (raw, offset, length, value, desc)
NamespacesThingMagicByteConvSetBits(UInt64%, Int32, Int32, UInt64, String)
Set bits within an integer.
Declaration Syntax
C#Visual BasicVisual C++
public static void SetBits(
	ref ulong raw,
	int offset,
	int length,
	ulong value,
	string desc
)
Public Shared Sub SetBits ( _
	ByRef raw As ULong, _
	offset As Integer, _
	length As Integer, _
	value As ULong, _
	desc As String _
)
public:
static void SetBits(
	unsigned long long% raw, 
	int offset, 
	int length, 
	unsigned long long value, 
	String^ desc
)
Parameters
raw ( UInt64 %)
Integer to modify
offset (Int32)
Offset of least-significant bit to modify
length (Int32)
Number of bits to modify
value (UInt64)
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)