Home Units Hierarchy Routines All identifiers

Class unaBitReader_file

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaBitReader_file = class(unaBitReader_abstract)

Description

Bit-reader based on file storage.

Hierarchy

Overview

Methods

Public constructor create(mf: unaMappedFile); overload;
Public constructor create(const fileName: wideString); overload;
Protected function EOF(numBits: unsigned = 8): bool; override;
Public procedure BeforeDestruction(); override;
Protected procedure doRestart(); override;
Protected procedure readSubBuf(reqSize: int = -1; append: bool = false); override;

Description

Methods

Public constructor create(mf: unaMappedFile); overload;

Creates bit-readed based on mapped file object.

Parameters
mf
Mapped file object to be used for reading.
Public constructor create(const fileName: wideString); overload;

Creates bit-readed based on buffered file operations.

Parameters
fileName
Name of file to be opened for reading.
Protected function EOF(numBits: unsigned = 8): bool; override;

Checks if end of file is reached.

Public procedure BeforeDestruction(); override;

Cleans up the instance.

Protected procedure doRestart(); override;

Cleans up the reader.

Protected procedure readSubBuf(reqSize: int = -1; append: bool = false); override;

Reads next portion of bytes from file.

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09