System.Classes.TStreamAdapter.SetSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SetSize(libNewSize: LargeUInt): HResult; virtual; stdcall;

C++

virtual HRESULT __stdcall SetSize(unsigned __int64 libNewSize);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TStreamAdapter

Description

Implements the IStream SetSize method.

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.

See Also