1
#ifndef __STREAM_LSBFENCODER_H
2
#define __STREAM_LSBFENCODER_H
4
#include "IInOutStreams.h"
16
void Init(ISequentialOutStream *aStream)
18
m_Stream.Init(aStream);
25
WriteBits(0, m_BitPos);
26
return m_Stream.Flush();
28
void WriteBits(UINT32 aValue, UINT32 aNumBits);
30
UINT32 GetBitPosition() const
31
{ return (8 - m_BitPos); }
33
UINT64 GetProcessedSize() const {
34
return m_Stream.GetProcessedSize() + (8 - m_BitPos + 7) /8; }
41
void Init(CEncoder *anEncoder)
42
{ m_Encoder = anEncoder; }
43
void WriteBits(UINT32 aValue, UINT32 aNumBits);