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

AlignToInt

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

Declaration

Source position: fpcadds.pas line 31

function AlignToInt(

  const p: Pointer

):Pointer;

Arguments

p

  

Pointer to the value aligned in the routine.

Description

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.

See also

AlignToPtr

  

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


Version 4.0 Generated 2025-05-03 Home