Sign in Join
FPDoc Onlineexperiment

TStream.ReadWord function

Member of TStreampublicIn unit Classes

Read a word from the stream and return its value.

Declaration

pascal
function ReadWord: Word

Description

ReadWord reads one Word (i.e. 2 bytes) from the stream and returns its value. This is a utility function which simply calls the Read function.

Errors

If the word cannot be read, a EStreamError exception will be raised.

See also

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