IDebugDisassemblyStream2::GetSize
Applies to: Visual Studio Visual 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
Gets the size in instructions of this disassembly stream.
Syntax
HRESULT GetSize(
UINT64* pnSize
);
int GetSize(
out ulong pnSize
);
Parameters
pnSize
[out] Returns the size, in instructions.
Return Value
If successful, returns S_OK
; otherwise, returns an error code.
Remarks
The value returned from this method can be used to allocate an array of DisassemblyData structures which is then passed to the Read method.