Unit 'Objects' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TDosStream

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

DOS file stream.

Declaration

Source position: objects.pp line 359

type TDosStream = object(TStream)

  Handle: THandle;

  

OS file handle for stream.

  FName: AsciiZ;

  

File name.

  constructor Init();

  

Instantiate a new instance of TDosStream.

  destructor Done; virtual;

  

Closes the file and cleans up the instance.

  procedure Close; virtual;

  

Close the file.

  procedure Truncate; virtual;

  

Truncate the file on the current position.

  procedure Seek(); virtual;

  

Set file position.

  procedure Open(); virtual;

  

Open the file stream.

  procedure Read(); virtual;

  

Read data from the stream to a buffer.

  procedure Write(); virtual;

  

Write data from a buffer to the stream.

end;

Inheritance

TDosStream

  

DOS file stream.

|

TStream

  

Base stream class.

|

TObject

  

Basis of all objects.

|

TObject

  

Base class of all classes.

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.


Documentation generated on: Oct 27 2024