CAST II Game Engine

   MAIN       FEATURES       SCREENSHOTS       FORUMS       MANUAL       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TFileStream

Unit

Basics

Declaration

type TFileStream = class(TStream)

Description

File stream class

Provides streaming implementation for binary files

Hierarchy

TStream

Methods

Overview

Publicconstructor Create(const AFileName: string; const Usage: Integer = fuReadWrite; const ShareMode: Integer = smAllowAll);
Publicdestructor Destroy; override;
Publicprocedure Close;
Publicfunction Open(const Usage: Integer; const ShareMode: Integer): Boolean;
Publicfunction Read(out Buffer; const Count: Cardinal): Cardinal; override;
Publicfunction Seek(const NewPos: Cardinal): Boolean; override;
Protectedprocedure SetSize(const Value: Cardinal); override;
Publicfunction Write(const Buffer; const Count: Cardinal): Cardinal; override;

Description

Publicconstructor Create(const AFileName: string; const Usage: Integer = fuReadWrite; const ShareMode: Integer = smAllowAll);

Creates a file stream associating it with file with the given file name

Publicdestructor Destroy; override;

 

Publicprocedure Close;

Close file

Publicfunction Open(const Usage: Integer; const ShareMode: Integer): Boolean;

Open file with the specified usage and sharing mode

Publicfunction Read(out Buffer; const Count: Cardinal): Cardinal; override;

 

Publicfunction Seek(const NewPos: Cardinal): Boolean; override;

 

Protectedprocedure SetSize(const Value: Cardinal); override;

Changes current size of the stream

Publicfunction Write(const Buffer; const Count: Cardinal): Cardinal; override;

 

Properties

Overview

Publicproperty Filename: string;

Description

Publicproperty Filename: string;

Associated file name

Last modified: 26 Oct, 2008
Copyright (C) 2006-2008, casteng.com