Home Units Hierarchy Routines All identifiers

Class unaMemoryStream

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaMemoryStream = class(unaAbstractStream)

Description

Stream is stored in memory. This implementation does not support seeking.

Hierarchy

Overview

Methods

Public destructor Destroy(); override;
Public function compressChunks(): int;
Public function firstChunk(): unaStreamChunk;
Public function firstChunkRemove(): bool;
Public function firstChunkSize(): int;
Public function getCrc32(): unsigned;
Protected function clear2(): unaAbstractStream; override;
Protected function getAvailableSize2(): int; override;
Protected function getPosition(): int; override;
Protected function read2(buf: pointer; size: int; remove: bool = true): int; override;
Protected function remove2(size: int): int; override;
Protected function seek(position: int; fromBeggining: bool = true): int; overload; override;
Protected function seekD(delta: int): int; overload; override;
Protected function write2(buf: pointer; size: int): int; override;
Public procedure AfterConstruction(); override;

Properties

Public property maxCacheSize: unsigned read f_maxCacheSize write f_maxCacheSize default 10;

Description

Methods

Public destructor Destroy(); override;
 
Public function compressChunks(): int;

Moves all chunks into first one.

Returns

first chunk size ( = stream size)

Public function firstChunk(): unaStreamChunk;
 
Public function firstChunkRemove(): bool;
 
Public function firstChunkSize(): int;
 
Public function getCrc32(): unsigned;
 
Protected function clear2(): unaAbstractStream; override;
 
Protected function getAvailableSize2(): int; override;
 
Protected function getPosition(): int; override;
 
Protected function read2(buf: pointer; size: int; remove: bool = true): int; override;
 
Protected function remove2(size: int): int; override;
 
Protected function seek(position: int; fromBeggining: bool = true): int; overload; override;
 
Protected function seekD(delta: int): int; overload; override;
 
Protected function write2(buf: pointer; size: int): int; override;
 
Public procedure AfterConstruction(); override;
 

Properties

Public property maxCacheSize: unsigned read f_maxCacheSize write f_maxCacheSize default 10;

Number of chunks to keep in memory for later re-use.

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09