PtrInt
From Free Pascal wiki
Revision as of 01:07, 23 January 2022 by Kai Burghardt (talk | contribs) (→application: fix spelling mistake, supposedly insert new external links [spam detection false positive])
The data types ptrInt
(“Peter Int”) and ptrUInt
are signed and unsigned integer
data types respectively having the same sizeOf
of a pointer
.
application
- Use
ptrUInt
if aninteger
value will eventually be typecasted to apointer
. - Regardless of the size taken up by its elements, an
array
cannot have more thanhigh(ptrInt)
elements. Additionally, the range type must be a subrange ofptrInt
.[1]
notes
PtrInt
/ptrUInt
are not necessarily the same size ofALUSInt
/ALUUInt
.- The introduction of
ptrInt
was a mistake. New code should not use it. IntPtr
andnativeInt
are aliases forptrInt
.UIntPtr
andnativeUInt
are aliases forptrUInt
.PtrInt
andptrUInt
are redefined by theunit
unicodeData
.