Share via


IDebugDisassemblyStream2::GetSize

Gets the size in instructions of this disassembly stream.

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 IDebugDisassemblyStream2::Read method.

See Also

Reference

IDebugDisassemblyStream2

DisassemblyData

IDebugDisassemblyStream2::Read