Mercury API
GetBits Method (raw, offset, length)
NamespacesThingMagicByteConvGetBits(UInt64, Int32, Int32)
Get bits within an integer; e.g., GetBits(0x1234, 4, 4) returns 0x3
Declaration Syntax
C#Visual BasicVisual C++
public static ulong GetBits(
	ulong raw,
	int offset,
	int length
)
Public Shared Function GetBits ( _
	raw As ULong, _
	offset As Integer, _
	length As Integer _
) As ULong
public:
static unsigned long long GetBits(
	unsigned long long raw, 
	int offset, 
	int length
)
Parameters
raw (UInt64)
Integer to extract bits from
offset (Int32)
Offset of least-significant bit to modify
length (Int32)
Number of bits to modify
Return Value
Extracted bits

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