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: PJStreamWrapper

Class: TPJStreamWrapper

Applies to: ~>3.0

function Write(const Buffer; Count: Longint): Longint; override;

Description

This method overrides and implements an abstract method of TStream.

Write attempts to write a specified number of bytes of data from a buffer into the wrapped stream.

Parameters:

Returns:

Remarks

If the method’s return value is less than Count then not all the data could be written to the wrapped stream.

Data is written to the wrapped stream from its current position. The stream’s position is incremented by the number of bytes written.

An exception may be raised if the wrapped stream does not support write access.