Sign in Join
FPDoc Onlineexperiment

TStream.WriteAnsiString procedure

Member of TStreampublicIn unit Classes

Write an ansistring to the stream.

Declaration

pascal
procedure WriteAnsiString(const S: AnsiString); virtual

Description

WriteAnsiString writes the AnsiString S (i.e. 4 bytes) to the stream. This is a utility function which simply calls the Write function. The ansistring is written as a 4 byte length specifier, followed by the ansistring's content. The ansistring can be read from the stream using the ReadAnsiString function.

Errors

If an error occurs when attempting to write, an EStreamError exception will be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.