help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TStream.CopyFrom

Copy data from one stream to another

Declaration

Source position: classesh.inc line 607

public function TStream.CopyFrom(

  Source: TStream;

  Count: Int64

):Int64;

Description

CopyFrom reads Count bytes from Source and writes them to the current stream. This updates the current position in the stream. After the action is completed, the number of bytes copied is returned.

This can be used to quickly copy data from one stream to another or to copy the whole contents of the stream.

See also

TStream.Read

  

Reads data from the stream to a buffer and returns the number of bytes read.

TStream.Write

  

Writes data from a buffer to the stream and returns the number of bytes written.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505