Sign in Join
FPDoc Onlineexperiment

TStreamHelper.WriteWordBE procedure

Member of TStreamHelperIn unit StreamEx

Write a word value, big endian.

Declaration

pascal
procedure WriteWordBE(w: Word)

Arguments

w

The word value to write to stream.

Description

WriteWordBE writes a Word-sized value to the stream, big-endian (MSB first).

Errors

If not all data (2 bytes) can be written, an EWriteError exception is raised.

See also

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