description | title | ms.date | ms.topic | dev_langs | helpviewer_keywords | author | ms.author | manager | ms.subservice | ||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the size, in bytes, of the named stream. | IDiaDataSourceEx::getStreamSize | 7/2/2024 | reference |
|
| grantri | grantri | mijacobs | debug-diagnostics |
Retrieves the size, in bytes, of the named stream.
HRESULT getStreamSize ( LPCOLESTR stream, ULONGLONG* pcb );
stream
[in] The name of the stream within the debug information.
pcb
[out] The size in bytes of the named stream.
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.
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.
ULONGLONG countBytes = 0; HRESULT hr = pSource->getStreamSize( L"/names", &countBytes );