System.SyncObjs.TInterlocked.BitTestAndClear
Delphi
class function BitTestAndClear(var Target: Integer; BitOffset: TBitOffset): Boolean; static;
C++
static bool __fastcall BitTestAndClear(int &Target, TBitOffset BitOffset);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TInterlocked |
Description
Vérifie si un certain bit dans une variable est initialisé à 1 et initialise sa valeur à 0.
BitTestAndClear vérifie si un certain bit dans une variable est initialisé à 1 et initialise sa valeur à 0. BitOffset spécifie quel bit du paramètre Target sera vérifié. La méthode renvoie True si le bit a la valeur 1, False sinon. De plus, le bit est initialisé à 0, indépendamment de sa valeur.