Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.43 KB

idiadatasourceex-getstreamsize.md

File metadata and controls

59 lines (41 loc) · 1.43 KB
descriptiontitlems.datems.topicdev_langshelpviewer_keywordsauthorms.authormanagerms.subservice
Retrieves the size, in bytes, of the named stream.
IDiaDataSourceEx::getStreamSize
7/2/2024
reference
C++
IDiaDataSourceEx::getStreamSize method
grantri
grantri
mijacobs
debug-diagnostics

IDiaDataSource::getStreamSize

Retrieves the size, in bytes, of the named stream.

Syntax

HRESULT getStreamSize ( LPCOLESTR stream, ULONGLONG* pcb );

Parameters

stream

[in] The name of the stream within the debug information.

pcb

[out] The size in bytes of the named stream.

Return Value

If successful, returns S_OK. If the named stream does not exist within the PDB, the API might fail, or it i might return a length of 0.

Remarks

Program Databases are made up of multiple streams of data. Some of those streams are named. You can use this method to gather information about these named streams.

To get the data of the stream, use the IDiaDataSourceEx::getStreamRawData method.

Example

ULONGLONG countBytes = 0; HRESULT hr = pSource->getStreamSize( L"/names", &countBytes );

See also

close