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 TMemoryStream

Unit

Basics

Declaration

type TMemoryStream = class(TStream)

Description

Memory stream class

Provides streaming implementation for buffers in memory

Hierarchy

TStream

Methods

Overview

Publicconstructor Create(AData: Pointer; const ASize: Cardinal);
Publicdestructor Destroy; override;
Publicfunction Read(out Buffer; const Count: Cardinal): Cardinal; override;
Protectedprocedure SetSize(const Value: Cardinal); override;
Publicfunction Write(const Buffer; const Count: Cardinal): Cardinal; override;

Description

Publicconstructor Create(AData: Pointer; const ASize: Cardinal);

Creates a memory stream of the specified size associating it with the specified address in memory

Publicdestructor Destroy; override;

 

Publicfunction Read(out Buffer; const Count: Cardinal): Cardinal; 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 Data: Pointer;

Description

Publicproperty Data: Pointer;

Pointer to buffer in memory

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