[Overview][Types][Procedures and functions][Index] Reference for unit 'FPCAdds' (#lazutils)

AlignToPtr

Aligns the specified pointer to the boundaries required for the FPC compiler.

Declaration

Source position: fpcadds.pas line 30

function AlignToPtr(

  const p: Pointer

):Pointer;

Arguments

p

  

Pointer affected in the routine.

Description

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.

See also

AlignToInt

  

Aligns the specified pointer to the size of an Integer data type.


Version 4.0 Generated 2025-05-03 Home