Skip to content

UInt32Extensions Class

Definition

Extension methods for UInt32.

public static class UInt32Extensions

View source

Methods

Name Description
GetBit(UInt32, Int32) Gets the value of the bit at the specified index.
LeftMostBit(UInt32) Gets the left-most bit (bit 31) of a uint.
ResetBit(UInt32, Int32) Returns a new uint with the bit at the specified index cleared.
RightMostBit(UInt32) Gets the right-most bit (bit 0) of a uint.
SetBit(UInt32, Int32) Returns a new uint with the bit at the specified index set.
SignBit(UInt32) Gets the sign bit (bit 31) of a uint.
ToBinaryString(UInt32) Converts a uint to its binary string representation, e.g. "0b00000001000000100000001100000100".