System.Classes.THandleStream

From Appmethod Libraries
Jump to: navigation, search

System.Classes.TStreamSystem.TObjectTHandleStream

Object Pascal

THandleStream = class(TStream)

C++

class PASCALIMPLEMENTATION THandleStream : public TStream

Properties

Type Visibility Source Unit Parent
class public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

THandleStream enables applications to read from and write to communications resources identified by a handle.

Use THandleStream to access files, sockets, named pipes, mailslots, or other communications resources that provide a handle when opened. For example, the FileOpen function provides a handle for a file on disk. THandleStream allows applications to use a uniform stream interface when performing I/O using a handle.

To avoid the overhead of managing file handles, use TFileStream to work with disk files.

See Also