lzhoutstreamwithcrc.cpp
来自「由7-zip提供的压缩、解压缩程序」· C++ 代码 · 共 28 行
CPP
28 行
// LzhOutStreamWithCRC.cpp#include "StdAfx.h"#include "LzhOutStreamWithCRC.h"namespace NArchive {namespace NLzh {STDMETHODIMP COutStreamWithCRC::Write(const void *data, UInt32 size, UInt32 *processedSize){ UInt32 realProcessedSize; HRESULT result; if(!_stream) { realProcessedSize = size; result = S_OK; } else result = _stream->Write(data, size, &realProcessedSize); _crc.Update(data, realProcessedSize); if(processedSize != NULL) *processedSize = realProcessedSize; return result;}}}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?