RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStreamAdapter.SetSize Method

Implements the IStream SetSize method.

Pascal
function SetSize(libNewSize: Largeint): HResult; virtual; stdcall;
C++
virtual __fastcall __stdcall HRESULT SetSize(Largeint libNewSize);

SetSize sets the size of the stream to the number of bytes specified by libNewSize. 

SetSize returns S_OK if it successfully resizes the stream to libNewSize. It returns E_FAIL if it could not resize the stream and the current size of the stream is not libNewSize on exit. It returns E_UNEXPECTED if SetSize encounters an exception while trying to set the size of the stream. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!