System.Classes.TStreamAdapter.Write

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Write(pv: Pointer; cb: FixedUInt; pcbWritten: PFixedUInt): HResult; virtual; stdcall;

C++

virtual HRESULT __stdcall Write(void * pv, unsigned cb, System::PFixedUInt pcbWritten);

Properties

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

Description

Implements the IStream Write method.

Write writes up to cb bytes from the buffer pointed to by pv into the stream, starting at the current position. pcbWritten returns the number of bytes actually written.

Write returns S_OK if it successfully writes pcbWritten bytes into the stream. It returns STG_E_INVALIDPOINTER it can't write because pv is nil. It returns STG_E_CANTSAVE if the write operation fails for any other reason.

See Also