• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class BitHelper

Provides helper methods for extracting bit fields from integer values.

Inheritance
object
BitHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX