Class BitManipulation
Provides helper methods for bit manipulation operations.
Inherited Members
Namespace: DRIT.Drawing.Metafile
Assembly: DRIT.Drawing.dll
Syntax
public static class BitManipulation
Methods
GetBits(byte, int, int)
Extracts a specified number of bits from a byte value.
Declaration
public static int GetBits(byte value, int start, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | value | The source byte to extract bits from. |
| int | start | The zero-based starting bit position. |
| int | length | The number of bits to extract. |
Returns
| Type | Description |
|---|---|
| int | The extracted bit field value. |