IMStream::SetSize
The IMStream::SetSize method sets the new stream size.
If the new size is less than the old size, the stream is truncated to the specified size. If the new size is greater that the old one the stream is appended with the appropriate number of zeros to occupy the new size in bytes.
Quick info
HRESULT SetSize(long lVal)
Parameters
- iVal
- [in] - new size
Return values
The
following value is returned when this method is called:
- S_OK
- Success status