Skip to content

TParameterLocation

Describe a method argument (parameter) location.

Declaration

Source position: typinfo.pp line 163

type
  TParameterLocation = packed record
    RegSub: TSubRegister = (None,Lo,Hi,Word,DWord,QWord,FloatSingle,FloatDouble,
                FloatQuad,MultiMediaSingle,MultiMediaDouble,
                MultiMediaWhole,MultiMediaX,MultiMediaY);
    RegNumber: Word;
    Offset: SizeInt = Int64;
    property Reference: Boolean; {r}
    property RegType: TRegisterType; {r}
    property ShiftVal: Int8; {r}
  end;

Description

TParameterLocation is used by RTTI to describe the location of a parameter (argument) when arguments are passed to a method call. It has the same memory layout as the actual RTTI data. It offers the following fields and properties:

RegSub
Sub register indicator.
RegNumber
Register number.
Offset
Stack offset or index of register.
Property Reference
Is the offset a stack offset or register index.
Property RegType
Register type.
Property ShiftVal
Register shift.

See also

Name Description
TParameterLocation Describe a method argument (parameter) location.
TRegisterType Register type.
TSubRegister CPU Sub register size/location.