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