Sign in Join
FPDoc Onlineexperiment

TStreamHelper helper

In unit StreamEx

Helper for stream classes, introducing some endianness methods.

Declaration

pascal
TStreamHelper = class

Description

TStreamHelper is a TStream helper class which introduces some helper routines to read/write multi-byte integer values in a way that is endianness-safe.

See also

Methods

ReadWordLERead a Word from the stream, little endian.
ReadDWordLERead a DWord from the stream, little endian.
ReadQWordLERead a QWord from the stream, little endian.
WriteWordLEWrite a word value, little endian.
WriteDWordLEWrite a DWord value, little endian.
WriteQWordLEWrite a QWord value, little endian.
ReadWordBERead a Word from the stream, big endian.
ReadDWordBERead a DWord from the stream, big endian.
ReadQWordBERead a QWord from the stream, big endian.
WriteWordBEWrite a word value, big endian.
WriteDWordBEWrite a DWord value, big endian.
WriteQWordBEWrite a QWord value, big endian.
ReadSingleRead a single-precision floating point value from the stream.
ReadDoubleRead a double-precision floating point value from the stream.
WriteSingleWrite a single-precision floating point value to the stream.
WriteDoubleWrite a double-precision floating point value to the stream.

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