Sign in Join
FPDoc Onlineexperiment

TDosStream object

In unit Objects

DOS file stream.

Declaration

pascal
TDosStream = class(TStream)

Inheritance

  1. TDosStream
  2. TStream
  3. TObject

Descends from it: TBufStream

Description

TDosStream is a stream that stores it's contents in a file. it overrides a couple of methods of TStream for this.

In addition to the fields inherited from TStream (see TStream), there are some extra fields, that describe the file. (mainly the name and the OS file handle)

No buffering in memory is done when using TDosStream. All data are written directly to the file. For a stream that buffers in memory, see TBufStream.

Methods

InitInstantiate a new instance of TDosStream.
DoneCloses the file and cleans up the instance.
CloseClose the file.
TruncateTruncate the file on the current position.
SeekSet file position.
OpenOpen the file stream.
ReadRead data from the stream to a buffer.
WriteWrite data from a buffer to the stream.

Fields

HandleOS file handle for stream.
FNameFile name.

Inherited

From TObject (42)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance Create DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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