System.Rtti.TValue.GetReferenceToRawArrayElement

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetReferenceToRawArrayElement(Index: NativeInt): Pointer;

C++

void * __fastcall GetReferenceToRawArrayElement(System::NativeInt Index);

Properties

Type Visibility Source Unit Parent
function public
System.Rtti.pas
System.Rtti.hpp
System.Rtti TValue

Description

Returns a pointer to the stored value.

Use GetReferenceToRawData to obtain a pointer to a given element of the stored array. The obtained pointer is not always safe to use, because the reference counting may have actually disposed of the array.

Note: GetReferenceToRawArrayElement only works for stored values that are references to heap data.

See Also