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;

Description

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.

Parameters:

Returns:

Remarks

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.