"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "CPP/7zip/Compress/BcjCoder.cpp" between
p7zip_15.14.1_src_all.tar.gz and p7zip_16.02_src_all.tar.gz

About: p7zip is a command-line file archiver with a high compression ratio (a port of the Windows program 7za.exe).

BcjCoder.cpp  (p7zip_15.14.1_src_all):BcjCoder.cpp  (p7zip_16.02_src_all)
// BcjCoder.cpp // BcjCoder.cpp
#include "StdAfx.h" #include "StdAfx.h"
#include "BcjCoder.h" #include "BcjCoder.h"
STDMETHODIMP CBcjCoder::Init() namespace NCompress {
namespace NBcj {
STDMETHODIMP CCoder::Init()
{ {
_bufferPos = 0; _bufferPos = 0;
x86_Convert_Init(_prevMask); x86_Convert_Init(_prevMask);
return S_OK; return S_OK;
} }
STDMETHODIMP_(UInt32) CBcjCoder::Filter(Byte *data, UInt32 size) STDMETHODIMP_(UInt32) CCoder::Filter(Byte *data, UInt32 size)
{ {
UInt32 processed = (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, _ encode); UInt32 processed = (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, _ encode);
_bufferPos += processed; _bufferPos += processed;
return processed; return processed;
} }
}}
 End of changes. 3 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS