System.Rtti.TValue.ExtractRawData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ExtractRawData(ABuffer: Pointer);

C++

void __fastcall ExtractRawData(void * ABuffer);

Properties

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

Description

Copies the stored value to the given memory address.

Use ExtractRawData when a raw copy of the stored value is required. The ABuffer parameter specifies the address of the memory where the value's data is copied.

If the referenced data represents a managed type or is an array of managed types, a safe copy function is used to make sure that reference counting works as expected.

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

See Also

Code Examples