Declaration¶
Source position: objects.pp line 359
Inheritance¶
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¶
| Member | Visibility | Description |
|---|---|---|
| Close | default | Close the file. |
| Done | default | Closes the file and cleans up the instance. |
| Init | default | Instantiate a new instance of TDosStream. |
| Open | default | Open the file stream. |
| Read | default | Read data from the stream to a buffer. |
| Seek | default | Set file position. |
| Truncate | default | Truncate the file on the current position. |
| Write | default | Write data from a buffer to the stream. |
Fieldss¶
| Member | Visibility | Description |
|---|---|---|
| FName | default | File name. |
| Handle | default | OS file handle for stream. |