IDiaSymbol::get_length

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves the number of bits or bytes of memory used by the object represented by this symbol.

Syntax

HRESULT get_length ( 
   ULONGLONG* pRetVal
);

Parameters

pRetVal

[out] Returns the number of bytes or bits of memory used by the object represented by this symbol.

Return Value

If successful, returns S_OK; otherwise, returns S_FALSE or an error code.

Note

A return value of S_FALSE means the property is not available for the symbol.

Remarks

If the LocationType Enumeration of the symbol is LocIsBitField, the length returned by this method is in bits; otherwise, the length is in bytes for all other location types.

Example

IDiaSymbol* pSymbol;
ULONGLONG   length;
pSymbol->get_length( &length );

Requirements

Requirement Description
Header: dia2.h
Version: DIA SDK v7.0

See also