TStreamHelper helper
Helper for stream classes, introducing some endianness methods.
Declaration
TStreamHelper = classDescription
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
ReadWordLE | Read a Word from the stream, little endian. | |
ReadDWordLE | Read a DWord from the stream, little endian. | |
ReadQWordLE | Read a QWord from the stream, little endian. | |
WriteWordLE | Write a word value, little endian. | |
WriteDWordLE | Write a DWord value, little endian. | |
WriteQWordLE | Write a QWord value, little endian. | |
ReadWordBE | Read a Word from the stream, big endian. | |
ReadDWordBE | Read a DWord from the stream, big endian. | |
ReadQWordBE | Read a QWord from the stream, big endian. | |
WriteWordBE | Write a word value, big endian. | |
WriteDWordBE | Write a DWord value, big endian. | |
WriteQWordBE | Write a QWord value, big endian. | |
ReadSingle | Read a single-precision floating point value from the stream. | |
ReadDouble | Read a double-precision floating point value from the stream. | |
WriteSingle | Write a single-precision floating point value to the stream. | |
WriteDouble | Write a double-precision floating point value to the stream. |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
