Difference between revisions of "TFileStream"
(Created page with "==Inheritance== *TStream **TFileStream ==Description== A binary stream to read/write from/to file user constructable: '''NO''' user destructable: '''YES''' ==Mem...") |
m (Added whitespace to function definitions.) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
*[[TStream]] | *[[TStream]] | ||
**[[TFileStream]] | **[[TFileStream]] | ||
+ | **[[TStringStream]] | ||
==Description== | ==Description== | ||
Line 14: | Line 15: | ||
! Member declaration !! Access mode !! Inherited | ! Member declaration !! Access mode !! Inherited | ||
|- | |- | ||
− | | procedure [[TFileStream. | + | | procedure [[TFileStream.Clear|Clear]] |
| | | | ||
| align="center" | no | | align="center" | no | ||
|- | |- | ||
− | | procedure [[TFileStream. | + | | procedure [[TFileStream.LoadFromStream|LoadFromStream]](Stream: TStream) |
| | | | ||
| align="center" | no | | align="center" | no | ||
|- | |- | ||
− | | procedure [[TFileStream. | + | | procedure [[TFileStream.LoadFromFile|LoadFromFile]](FileName: String) |
| | | | ||
| align="center" | no | | align="center" | no | ||
|- | |- | ||
− | | procedure [[TFileStream. | + | | procedure [[TFileStream.SaveToStream|SaveToStream]](Stream: TStream) |
| | | | ||
| align="center" | no | | align="center" | no | ||
|- | |- | ||
− | | procedure [[TFileStream. | + | | procedure [[TFileStream.SaveToFile|SaveToFile]](FileName: String) |
| | | | ||
| align="center" | no | | align="center" | no | ||
|- | |- | ||
− | | procedure [[TFileStream. | + | | procedure [[TFileStream.SetSize|SetSize]](NewSize: LongInt) |
| | | | ||
| align="center" | no | | align="center" | no | ||
|- | |- | ||
− | | procedure [[ | + | | procedure [[Destructor|Free]] |
| | | | ||
− | | align="center" | | + | | align="center" | yes |
− | |||
− | |||
|- | |- | ||
− | | function [[TStream.Read|Read]](Buffer:String;Count:LongInt):LongInt | + | | function [[TStream.Read|Read]](Buffer: String; Count: LongInt): LongInt |
| | | | ||
| align="center" | yes | | align="center" | yes | ||
|- | |- | ||
− | | function [[TStream.Write|Write]](Buffer:String;Count:LongInt):LongInt | + | | function [[TStream.Write|Write]](Buffer: String;Count: LongInt): LongInt |
| | | | ||
| align="center" | yes | | align="center" | yes | ||
|- | |- | ||
− | | function [[TStream.Seek|Seek]](Offset:LongInt;Origin:Word):LongInt | + | | function [[TStream.Seek|Seek]](Offset: LongInt; Origin: Word): LongInt |
| | | | ||
| align="center" | yes | | align="center" | yes | ||
|- | |- | ||
− | | procedure [[TStream.ReadBuffer|ReadBuffer]](Buffer:String;Count:LongInt) | + | | procedure [[TStream.ReadBuffer|ReadBuffer]](Buffer: String; Count: LongInt) |
| | | | ||
| align="center" | yes | | align="center" | yes | ||
|- | |- | ||
− | | procedure [[TStream.WriteBuffer|WriteBuffer]](Buffer:String;Count:LongInt) | + | | procedure [[TStream.WriteBuffer|WriteBuffer]](Buffer: String; Count: LongInt) |
| | | | ||
| align="center" | yes | | align="center" | yes | ||
|- | |- | ||
− | | function [[TStream.CopyFrom|CopyFrom]](Source:TStream;Count:Int64):LongInt | + | | function [[TStream.CopyFrom|CopyFrom]](Source: TStream; Count: Int64): LongInt |
| | | | ||
| align="center" | yes | | align="center" | yes | ||
+ | |- | ||
+ | | colspan="3" | | ||
|- | |- | ||
| property [[TStream.Position|Position]]: Int64 | | property [[TStream.Position|Position]]: Int64 | ||
Line 72: | Line 73: | ||
| align="center" | yes | | align="center" | yes | ||
|- | |- | ||
− | | property [[TStream.Size]]: Int64 | + | | property [[TStream.Size|Size]]: Int64 |
| align="center" | RW | | align="center" | RW | ||
| align="center" | yes | | align="center" | yes | ||
|} | |} | ||
− | [[Category:Classes]] | + | [[Category:Classes]][[Category: TStream]] |
Latest revision as of 21:01, 27 May 2014
Inheritance
Description
A binary stream to read/write from/to file
user constructable: NO user destructable: YES
Members
Member declaration | Access mode | Inherited |
---|---|---|
procedure Clear | no | |
procedure LoadFromStream(Stream: TStream) | no | |
procedure LoadFromFile(FileName: String) | no | |
procedure SaveToStream(Stream: TStream) | no | |
procedure SaveToFile(FileName: String) | no | |
procedure SetSize(NewSize: LongInt) | no | |
procedure Free | yes | |
function Read(Buffer: String; Count: LongInt): LongInt | yes | |
function Write(Buffer: String;Count: LongInt): LongInt | yes | |
function Seek(Offset: LongInt; Origin: Word): LongInt | yes | |
procedure ReadBuffer(Buffer: String; Count: LongInt) | yes | |
procedure WriteBuffer(Buffer: String; Count: LongInt) | yes | |
function CopyFrom(Source: TStream; Count: Int64): LongInt | yes | |
property Position: Int64 | RW | yes |
property Size: Int64 | RW | yes |