Contents

FileHandle.ReadToEndOfFileCompletionMessage

A message a file handle sends when it reads all data in a file, or another process in a communication channel signals the end of the data.

Declaration

struct ReadToEndOfFileCompletionMessage

Overview

Before adding an observer for this message type, call either readToEndOfFileInBackgroundAndNotify() or readToEndOfFileInBackgroundAndNotify(forModes:) on an appropriate FileHandle object.

Observe this message with the identifier readToEndOfFileCompletion, or specify its type directly to the addObserver(of:for:using:) method. The Subject of this message type is FileHandle.

This message interoperates with the notification NSFileHandleReadToEndOfFileCompletion. The system notifies observers of the message when the NotificationCenter posts the notification. Similarly, the system notifies observers of the notification when it posts the message.

Topics

Creating a message

Working with message properties

See Also

Working with notification messages