System.HFAAttribute.Create
Delphi
constructor Create(const ElementType: Pointer; const ElementCount: Integer); overload;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.pas | System | HFAAttribute |
Description
Creates an instance of HFAAttribute.
Typically, the programmer does not need to care about HFA. The current Delphi compiler version handles HFA automatically, except when there is an array of type "anonymous type". In that case, you can use HFAAttribute to override the generated RTTI information.
An example of how you can use HFA:
type [HFA(TypeInfo(Double), 4)] THFARecord = record d4: array[1..4] of double; end;
- Note: HFAAttribute does not check the integrity of the provided information (neither at compile-time nor at run-time). If you apply HFAAttribute to a non-HFA record, the application may crash.
See Also
- Procedure Call Standard for the ARM 64-bit Architecture (PDF), section 4.3.5.1 and 5.4.2 C.2