Difference between revisions of "TStream"

From Soldat Community Wiki
Jump to: navigation, search
(new page)
 
m (Description)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
==Description==
 
==Description==
{{expand|description}}
+
[[TStream]] is the base class for all streaming classes. It defines methods for reading, writing from and to streams, as well as properties determining the size of the stream as well as the current position of the stream.<br>
 +
Descendent classes such as TMemoryStream or TFileStream then override these methods to write streams to memory or file.
  
 
  user constructable: '''NO'''
 
  user constructable: '''NO'''
 
  user destructable:  '''YES'''
 
  user destructable:  '''YES'''
 +
is virtual:        '''YES'''
  
 
==Members==
 
==Members==
Line 16: Line 18:
 
! Member declaration !! Access mode !! Inherited
 
! Member declaration !! Access mode !! Inherited
 
|-
 
|-
| procedure [[Constructor|Free]]
+
| procedure [[Destructor|Free]]
 
| align="center" |  
 
| align="center" |  
 
| align="center" | no
 
| align="center" | no

Latest revision as of 00:22, 21 August 2013

Inheritance

Description

TStream is the base class for all streaming classes. It defines methods for reading, writing from and to streams, as well as properties determining the size of the stream as well as the current position of the stream.
Descendent classes such as TMemoryStream or TFileStream then override these methods to write streams to memory or file.

user constructable: NO
user destructable:  YES
is virtual:         YES

Members

Member declaration Access mode Inherited
procedure Free no
function Read(Buffer: String; Count: Longint): Longint no
function Write(Buffer: String; Count: Longint): Longint no
function Seek(Offset: Longint; Origin: Word): Longint no
procedure ReadBuffer(Buffer: String; Count: Longint) no
function WriteBuffer(Buffer: String; Count: Longint) no
function CopyFrom(Source: TStream; Count: Int64): Longint no
property Position: Int64 RW no
property Size: Int64 RW no