Class BitHelper
Provides helper methods for extracting bit fields from integer values.
Inherited Members
Namespace: DRIT.Drawing.Metafile
Assembly: DRIT.Drawing.dll
Syntax
public static class BitHelper
Methods
GetBits(uint, int, int, bool)
Extracts a specified number of bits from an unsigned integer value.
Declaration
public static int GetBits(uint value, int start, int length, bool signed)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | value | The source value to extract bits from. |
| int | start | The zero-based starting bit position. |
| int | length | The number of bits to extract. |
| bool | signed | Whether the extracted value should be treated as signed. |
Returns
| Type | Description |
|---|---|
| int | The extracted bit field value. |