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



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

TMemoryStream.Write

Writes data to the stream's memory.

Declaration

Source position: classesh.inc line 707

public function TMemoryStream.Write(

  const Buffer;

  Count: LongInt

):LongInt; override;

Description

Write writes Count bytes from Buffer to the stream's memory, starting at the current position in the stream. If more memory is needed than currently allocated, more memory will be allocated. Any contents in the memory stream at the current position will be overwritten. The function returns the number of bytes actually written (which should under normal circumstances always equal Count).

This method overrides the abstract TStream.Write method.

Errors

If no more memory could be allocated, then an exception will be raised.

See also

TCustomMemoryStream.Read

  

Reads Count bytes from the stream into buffer.

Notes

 No notes exist for this page yet. 





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