Contains additional types and routines not currently available in FPC.

fpcadds.pas contains code in its initialization section to set the code page for conversions and the RTL file system to CP_UTF8. The initialization code is included only for platforms or OS-es where the RTL (Run-Time Library) is UTF-8-enabled.

fpcadds.pas is part of the lazutils package.

Alias to the Int64 type used as the origin for TStream seek operations.

Used in the implementation of classes including:

  • TBitmap
  • TIcon
  • TSharedCursorImage
  • TImageList
  • TClipboard
Alias to the PtrInt type used as the origin for TMemoryStream seek operations. Used in the implementation of TSynCustomExporter. Alias to the PtrUInt type used when comparing memory blocks. Used in the implementation of TSynCustomExporter and TGraphic. Converts the value in a String to a Word data type. Word value calculated for the specified String. String value examined in the method. Aligns the specified pointer to the boundaries required for the FPC compiler.

AlignToPtr is a Pointer function used to adjust the pointer specified in p to the boundaries required for the FPC compiler. AlignToPtr is influenced by the FPC_REQUIRES_PROPER_ALIGNMENT compiler define; when it is defined, the Align routine is called to adjust the pointer to the size required for Pointer data types. When it is not defined, the pointer in p does not require alignment, and is used as the return value.

Pointer affected in the routine. Aligns the specified pointer to the size of an Integer data type.

AlignToInt is a Pointer function used to adjust the pointer in p to the size needed for an Integer data type. AlignToInt is influenced by the FPC_REQUIRES_PROPER_ALIGNMENT compiler define; when it is defined, the Align routine is called to adjust the pointer size to the boundaries required for an Integer data type. When it is not defined, the pointer in p is used as the return value.

Pointer to the value aligned in the routine.