Sign in Join
FPDoc Onlineexperiment

TSimpleIPCServer.GetMessageData procedure

Member of TSimpleIPCServerpublicIn unit SimpleIPC

Read the data of the last message in a stream.

Declaration

pascal
procedure GetMessageData(Stream: TStream)

Arguments

Stream

Stream to store message data in.

Description

GetMessageData reads the data of the last message from MsgData and stores it in stream Stream. If no data was available, the stream will be cleared.

This function will return valid data only after a successful call to ReadMessage. It will also not clear the data buffer.

See also

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