add deflate compressing (simple, since we already use zlib)

This commit is contained in:
Glenn Maynard
2004-12-11 23:06:34 +00:00
parent d171b8e306
commit 4386b9bc83
2 changed files with 114 additions and 0 deletions
+19
View File
@@ -35,6 +35,25 @@ private:
int decomp_buf_avail;
};
class RageFileObjDeflate: public RageFileObj
{
public:
/* By default, pFile will not be freed. */
RageFileObjDeflate( RageFileBasic *pOutput );
~RageFileObjDeflate();
int GetFileSize() const { return m_pFile->GetFileSize(); }
private:
int ReadInternal( void *pBuffer, size_t iBytes ) { SetError( "Not implemented" ); return -1; }
int WriteInternal( const void *pBuffer, size_t iBytes );
int FlushInternal();
RageFileBasic *m_pFile;
z_stream *m_pDeflate;
bool m_bFileOwned;
};
#endif
/*