System.SysUtils.Int64Rec
Delphi
Int64Rec = packed record
case Integer of
0: (Lo, Hi: Cardinal);
1: (Cardinals: array [0..1] of Cardinal);
2: (Words: array [0..3] of Word);
3: (Bytes: array [0..7] of Byte);
end;
C++
struct DECLSPEC_DRECORD Int64Rec
{
public:
union
{
struct
{
System::StaticArray<System::Byte, 8> Bytes;
};
struct
{
System::StaticArray<System::Word, 4> Words;
};
struct
{
System::StaticArray<unsigned, 2> Cardinals;
};
struct
{
unsigned Lo;
unsigned Hi;
};
};
};
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
record struct |
public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Int64Rec déclare un enregistrement utilitaire pour fournir un accès aux octets d'une valeur Int64.
Le type Int64Rec déclare un enregistrement utilitaire qui stocke 8 octets de données contigus (compactés). Int64Rec est utilisé principalement pour le transtypage, où les données Int64 doivent être découpées.
Les 8 octets sont accessibles individuellement via le tableau Bytes, ou comme un tableau de 4 Mots, ou un tableau de 2 Cardinaux. Enfin, la valeur est accessible via les cardinaux de poids Hi et Lo.