System.TMarshal.FixArray

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function FixArray<T>(const Arr: TArray<T>): TPtrWrapper; overload;

Properties

Type Visibility Source Unit Parent
function public System.pas System TMarshal

Description

Returns a wrapped pointer referencing the data at the start of the array.

The FixArray method ensures the array has its reference count incremented. The returned value should be passed to UnfixArray when finished with to avoid memory leaks.

See Also