Skip to content

TStreamHelper.WriteWordLE

Write a word value, little endian.

Declaration

Source position: streamex.pp line 333

procedure TStreamHelper.WriteWordLE(w: Word);

Description

WriteWordLE writes a Word-sized value to the stream, little-endian (LSB first).

Errors

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

See also

Name Description
TStreamHelper.ReadWordLE Read a Word from the stream, little endian.
TStreamHelper.WriteDWordLE Write a DWord value, little endian.
TStreamHelper.WriteQWordLE Write a QWord value, little endian.