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

TStream.Write

Write a number of bytes to the stream.

Declaration

Source position: objects.pp line 295

procedure TStream.Write(

  var Buf;

  Count: LongInt

); virtual;

Description

Writeis an abstract method that should be overridden by descendent objects.

Writewrites Countbytes to the stream from Buf. It updates the position pointer, increasing it's value with Count.

For an example, see TStream.Read.

Errors

No checking is done to see if Bufactually contains Countbytes.

See also

TStream.Read

  

Read data from stream to buffer.

TStream.WriteStr

  

Write a pascal string to the stream.

TStream.StrWrite

  

Write a null-terminated string to the stream.