Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 1.47 KB

idiasymbol-get-length.md

File metadata and controls

58 lines (45 loc) · 1.47 KB
description title ms.date ms.topic dev_langs helpviewer_keywords author ms.author manager ms.subservice
Retrieves the number of bits or bytes of memory used by the object represented by this symbol.
IDiaSymbol::get_length
11/04/2016
reference
C++
IDiaSymbol::get_length method
mikejo5000
mikejo
mijacobs
debug-diagnostics

IDiaSymbol::get_length

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