Uncomp.cpp
资源名称:compress.rar [点击查看]
上传用户:deer201011
上传日期:2022-06-24
资源大小:10k
文件大小:1k
源码类别:
压缩解压
开发平台:
Visual C++
- // Uncomp.cpp
- #include "CompressedFile.h"
- BOOL CUncompressedFile::Open( const char *pszFileName, unsigned int nOpenFlags, CFileException *pError )
- {
- m_nCompressionType = -1;
- if( CCompressedFile::Open( pszFileName, nOpenFlags, pError ) ){
- CCompressedFile::SetSizeToFileLength();
- return( TRUE );
- }
- else return( FALSE );
- }
- unsigned int CUncompressedFile::Read( void far *lpBuf, unsigned int nCount )
- {
- return( CCompressedFile::ReadBytes( lpBuf, nCount ) );
- }
- void CUncompressedFile::Write( void far *lpBuf, unsigned int nCount )
- {
- CCompressedFile::WriteBytes( lpBuf, nCount );
- }