SmartPascal
PInt64
Type
Pointer to an Int64 value System unit
  type PInt64 = ^Int64;
Description
The PInt64 type is a pointer to an Int64 value.
 
Pointer arithmetic, such as Inc, Dec can be used on it, for example to navigate a block of Int64 values, as in the example.
Related commands
Dec Decrement an ordinal variable
Inc Increment an ordinal variable
Int64 A 64 bit sized integer - the largest in Delphi
 
Example code : Store 3 Int64 values in memory and navigate through them
var
  int64Ptr : PInt64;
  a : TDateTime;

begin
  // Allocate storage for three Int64 variables
  GetMem(int64Ptr, 3 * SizeOf(Int64));

  // Fill out these Int64 variables
  int64Ptr^ := 1;
  Inc(int64Ptr);
  int64Ptr^ := 22;
  Inc(int64Ptr);
  int64Ptr^ := 333;

  // Now display these values
  Dec(int64Ptr, 2);
  ShowMessageFmt('Value 1 = %d',[int64Ptr^]);
  Inc(int64Ptr);
  ShowMessageFmt('Value 2 = %d',[int64Ptr^]);
  Inc(int64Ptr);
  ShowMessageFmt('Value 3 = %d',[int64Ptr^]);
end;
Show full unit code
   Value 1 = 1
   Value 2 = 22
   Value 3 = 333