GitHub    Download    Forum
Overview
Tutorial
C++ API
General interfaces
Data interfaces
Schema interfaces
TSchema
Schema_Create
Schema_Destroy
AddDelta
FindClassInfo
GetSchemaVersion
LoadFromFile
LoadFromMemory
StoreToFile
StoreToMemory
USchemaEdit
Configuration interfaces
Structures
Error codes
C# API
DTDL
DADL
Setup

TSchema::StoreToMemory

Stores the data of a schema object in a memory block. This function can be used to create a local copy of the schema data.

Syntax

HRESULT StoreToMemory(
[out] void* p_pData,
[in, out] UINT32* p_pulSize
) const;

Parameter

p_pData [out]
Type: void*
Pointer to a memory block to store the data at.
p_pulSize [in, out]
Type: UINT32*
On input contains the size of the memory block that p_pData is pointing to. The variable contains the size of bytes copied to p_pData on successful return.
If the return value of the function is HRESULT_FROM_WIN32(ERROR_MORE_DATA), the variable contains the size of the buffer that is needed to retrieve the data.

Return value

S_OK or an error from the Error Codes.
© 2022 Mobiland AG