Read or write a bit
Source position: syshelph.inc line 1093
public property TNativeUIntHelper.Bits[aIndex: TNativeUIntBitIndex] : Boolean |
Bits property reads or writes boolean value to a bit number determined by argument aIndex.
MyNativeUInt.Clear;// MyNativeUInt equals 0 MyNativeUInt.Bits[0] := true; // MyNativeUInt equals 1 MyNativeUInt.Bits[2] := true; // MyNativeUInt equals 5 WriteLn(MyNativeUInt.Bits[2]); // TRUE
|
Set bit to 1 |
|
|
Set bit to 0 |
|
|
Invert bit |
|
|
Check bit |
|
|
Return the position of the leftmost bit set |
|
|
Return the position of the rightmost bit set |
|
|
Count number of bits set |
|
|
Read or write a nibble |
|
|
Read or write a byte |
|
TNativeUIntHelper.Words |
|
Read or write a word |
TNativeUIntHelper.DWords |