System.TMarshal.FixArray

From RAD Studio API Documentation
Revision as of 17:05, 1 April 2013 by L10nBot (talk | contribs) (InheritsFrom)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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