RAD Studio VCL Reference
SysUtils.Int64Rec Record

Int64Rec declares a utility record to provide access to the bytes of an Int64 value.

Int64Rec = packed record
  case Integer of
    0: (Hi: Cardinal;
        Lo: Cardinal;);
    1: (Cardinals: array [0..1] of Cardinal);
        Words: array [0..3] of Word);
        Bytes: array [0..7] of Byte););
struct Int64Rec {
  unsigned Hi;
  unsigned Lo;
  array [0..1] of Cardinal) Cardinals;
  array [0..3] of Word) Words;
  array [0..7] of Byte) Bytes;

The Int64Rec type declares a utility record that stores 8 contiguous (packed) bytes of data. Int64Rec is used primarily for typecasting, where Int64 data needs to be dissected. 

The 8 bytes may be accessed individually via the Bytes array, or as an array of 4 Words, or an array of 2 Cardinals. And finally, the value may be accessed via the Hi and Lo order Cardinals. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!