[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Base class for streams.
Source position: classesh.inc line 1225
type TStream = class(TObject) |
||
public |
||
const |
||
DefaultWriteUnitname = Boolean; = False |
||
public |
||
function Read(); |
|
Reads data from the stream to a buffer and returns the number of bytes read. |
function Read64(); overload; |
||
function Write(); |
|
Writes data from a buffer to the stream and returns the number of bytes written. |
function Write64(); |
||
function Seek(); |
|
Sets the current position in the stream. |
function ReadData(); |
||
procedure ReadBuffer(); |
|
Reads data from the stream to a buffer. |
procedure ReadBufferData(); |
||
procedure WriteBuffer(); |
|
Writes data from a buffer to the stream. |
function WriteData(); |
||
procedure WriteBufferData(); |
||
function CopyFrom(); |
|
Copy data from one stream to another. |
function ReadComponent(); |
|
Reads component data from a stream. |
function ReadComponentRes(); |
|
Reads component data and resource header from a stream. |
procedure WriteComponent(); |
|
Write component data to the stream. |
procedure WriteComponentRes(); |
|
Write resource header and component data to a stream. |
procedure WriteDescendent(); |
|
Write descendent of a component. |
procedure WriteDescendentRes(); |
|
Write descendent of a component as resource. |
procedure WriteResourceHeader(); |
|
Write resource header to the stream. |
procedure FixupResourceHeader(); |
|
Not implemented in FPC. |
procedure ReadResHeader; |
|
Read a resource header from the stream. |
function ReadByte; |
|
Read a byte from the stream and return its value. |
function ReadWord; |
|
Read a word from the stream and return its value. |
function ReadDWord; |
|
Read a DWord from the stream and return its value. |
function ReadQWord; |
|
Read a QWord value from the stream and return its value. |
function ReadAnsiString; |
|
Read an ansistring from the stream and return its value. |
function ReadUnicodeString; |
||
procedure WriteByte(); |
|
Write a byte to the stream. |
procedure WriteWord(); |
|
Write a word to the stream. |
procedure WriteDWord(); |
|
Write a DWord to the stream. |
procedure WriteQWord(); |
|
Write a QWord value to the stream. |
procedure WriteAnsiString(); virtual; |
|
Write an ansistring to the stream. |
procedure WriteUnicodeString(); virtual; |
||
|
The current position in the stream. |
|
|
The current size of the stream. |
|
end; |
|
Base class for streams. |
|
| | ||
|
Base class of all classes. |
TStream is the base class for all streaming classes. It defines methods for reading, writing from and to streams, as well as functions to determine the size of the stream as well as the current position of the stream.
Descendant classes such as TMemoryStream or TFileStream then override these methods to write streams to memory or file.
|
Standard implementation of a stream that stores its data in memory. |
|
|
Stream that stores its data in a named file on disk. |
|
|
Stream that stores its data in a string. |