Condividi tramite


Metodo IDebugHostType::GetSize (dbgmodel.h)

Il metodo GetSize restituisce le dimensioni del tipo ( come se ne fosse stata eseguita una dimensioneof(type) in C++).

Sintassi

HRESULT GetSize(
  ULONG64 *size
);

Parametri

size

Le dimensioni del tipo verranno restituite qui.

Valore restituito

Questo metodo restituisce HRESULT che indica l'esito positivo o negativo.

Osservazioni

codice di esempio

ComPtr<IDebugHostType> spType; /* get a type (see FindTypeByName) */

ULONG64 size;
if (SUCCEEDED(spType->GetSize(&size)))
{
    // size is equivalent to sizeof( <type> )
}

Fabbisogno

Requisito Valore
intestazione dbgmodel.h

Vedere anche

'interfaccia IDebugHostType