Class TStreamBitWriter

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TStreamBitWriter = class(TObject)

Description

This class allows to write to Stream LongWord values that are packed on less than 32 bits. When starting writing, you specify MaxValue, the highest possible LongWord value that you will ever write. This class calculates how many bits are needed to express any value between 0 and MaxValue, and uses these many bits to write all the following values in WriteValue.

Hierarchy

Overview

Methods

Public constructor Create(AStream: TStream; const AMaxValue: LongWord);
Public destructor Destroy; override;
Public procedure WriteValue(const Value: LongWord);

Properties

Public property MaxValue: LongWord read FMaxValue;
Public property BitsPerValue: Cardinal read FBitsPerValue;
Public property Stream: TStream read FStream;

Description

Methods

Public constructor Create(AStream: TStream; const AMaxValue: LongWord);
 
Public destructor Destroy; override;
 
Public procedure WriteValue(const Value: LongWord);
 

Properties

Public property MaxValue: LongWord read FMaxValue;
 
Public property BitsPerValue: Cardinal read FBitsPerValue;
 
Public property Stream: TStream read FStream;
 

Generated by PasDoc 0.10.0 on 2006-07-12 06:44:38