Restore CZipOutputStream from MP3 prototype

Former-commit-id: 529c359935
This commit is contained in:
2022-12-05 21:30:20 -08:00
parent 914ef4a37c
commit 1e7e5887d2
4 changed files with 83 additions and 4 deletions

View File

@@ -11,15 +11,14 @@ template < typename T >
void coutput_stream_helper(const T& t, COutputStream& out);
class COutputStream {
void DoPut(const void* ptr, size_t len);
void DoFlush();
public:
COutputStream(int len);
virtual ~COutputStream();
virtual void Write(const void* ptr, size_t len) = 0;
void WriteBits(uint val, uint bitCount);
void DoPut(const void* ptr, size_t len);
void DoFlush();
void Flush();
void FlushShiftRegister();
void Put(const void* ptr, size_t len) {
@@ -48,7 +47,6 @@ public:
*(reinterpret_cast< u8* >(mBufPtr) + mUnwrittenLen++) = c;
}
private:
uint mUnwrittenLen;
uint mBufLen;