Class TStreamBitWriter
Unit
BitStreams
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
 |
constructor Create(AStream: TStream; const AMaxValue: LongWord); |
 |
destructor Destroy; override; |
 |
procedure WriteValue(const Value: LongWord); |
Properties
 |
property MaxValue: LongWord read FMaxValue; |
 |
property BitsPerValue: Cardinal read FBitsPerValue; |
 |
property Stream: TStream read FStream; |
Description
Methods
 |
constructor Create(AStream: TStream; const AMaxValue: LongWord); |
|
 |
destructor Destroy; override; |
|
 |
procedure WriteValue(const Value: LongWord); |
|
Properties
 |
property MaxValue: LongWord read FMaxValue; |
|
 |
property BitsPerValue: Cardinal read FBitsPerValue; |
|
 |
property Stream: TStream read FStream; |
|
Generated by PasDoc 0.10.0 on 2006-07-12 06:44:38