Read or write a bit.
Source position: syshelph.inc line 1387
public property TInt64Helper.Bits[aIndex: TInt64BitIndex] : Boolean |
Bits property reads or writes boolean value to a bit number determined by argument aIndex.
MyInt64.Clear;// %0000000000000000000000000000000000000000000000000000000000000000 MyInt64 equals 0 MyInt64.Bits[0] := true; // %0000000000000000000000000000000000000000000000000000000000000001 MyInt64 equals 1 MyInt64.Bits[2] := true; // %0000000000000000000000000000000000000000000000000000000000000101 MyInt64 equals 5 WriteLn(MyInt64.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. |
|
|
Read or write a word. |
|
|
Read or write a dword. |