RAD Studio VCL Reference
TStreamAdapter.SetSize Method

Implements the IStream SetSize method.

function SetSize(libNewSize: Largeint): HResult; virtual; stdcall;
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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!