System.Rtti.TValue.GetReferenceToRawArrayElement
Delphi
function GetReferenceToRawArrayElement(Index: Integer): Pointer;
C++
void * __fastcall GetReferenceToRawArrayElement(int 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.