Skip to content

TStream.Write

Write a number of bytes to the stream.

Declaration

Source position: objects.pp line 343

procedure TStream.Write(var Buf; Count: LongInt);  virtual;

Description

Write is an abstract method that should be overridden by descendent objects.

Write writes Count bytes 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 Buf actually contains Count bytes.

See also

Name Description
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.