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



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

TStream.WriteBuffer

Writes data from the stream to the buffer

Declaration

Source position: classesh.inc line 606

public procedure TStream.WriteBuffer(

  const Buffer;

  Count: LongInt

);

Description

WriteBuffer writes Count bytes to the stream from Buffer. If the stream does not allow Count bytes to be written, then an exception is raised.

WriteBuffer should be used to read in a fixed number of bytes, such as when writing structures or the content of variables. If the number of bytes is not determined, use TStream.Write instead. WriteBuffer uses Write internally to do the actual reading.

Errors

If the stream does not allow to write Count bytes, then an exception is raised.

See also

TStream.Write

  

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

TStream.ReadBuffer

  

Reads data from the stream to a buffer

Notes

 No notes exist for this page yet. 





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