gecko/modules/lib7z/LZMASDK/CPP/7zip/Compress/BcjCoder.cpp

16 lines
347 B
C++

// BcjCoder.cpp
#include "StdAfx.h"
#include "BcjCoder.h"
UInt32 CBCJ_x86_Encoder::SubFilter(Byte *data, UInt32 size)
{
return (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, 1);
}
UInt32 CBCJ_x86_Decoder::SubFilter(Byte *data, UInt32 size)
{
return (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, 0);
}