Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

Write method

Project: Stream Extension Classes

Unit: PJIStreams

Classes: TPJIStreamWrapper, TPJHandleIStreamWrapper, TPJFileIStream

Applies to: ~>3.0

function Write(pv: Pointer; cb: Longint; pcbWritten: PLongint): HResult;
  virtual; stdcall;


Writes a specified number of bytes from memory to the wrapped stream starting at the current seek pointer. The seek pointer is incremented by the number of bytes written.




If pcbWritten^ is less than cb then not all the data could be written to the wrapped stream.

The buffer pointed to by pv must contain at least cb bytes of data.