[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TStream.WriteByte

Write a byte to the stream.

Declaration

Source position: classesh.inc line 613

public procedure TStream.WriteByte(

  b: Byte

);

Description

WriteBytewrites the byte Bto the stream. This is a utility function which simply calls the Writefunction. The byte can be read from the stream using the ReadBytefunction.

Errors

If an error occurs when attempting to write, an EStreamErrorexception will be raised.

See also

TStream.Write

  

Writes data from a buffer to the stream and returns the number of bytes written.

TStream.ReadByte

  

Read a byte from the stream and return its value.

TStream.WriteWord

  

Write a word to the stream.

TStream.WriteDWord

  

Write a DWord to the stream.

TStream.WriteAnsiString

  

Write an ansistring to the stream.