mirror of
https://github.com/aaru-dps/Aaru.Compression.Native.git
synced 2025-12-16 19:24:31 +00:00
Move placement of lzma.
This commit is contained in:
24
3rdparty/lzma/CPP/7zip/Compress/BcjCoder.cpp
vendored
Normal file
24
3rdparty/lzma/CPP/7zip/Compress/BcjCoder.cpp
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// BcjCoder.cpp
|
||||
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "BcjCoder.h"
|
||||
|
||||
namespace NCompress {
|
||||
namespace NBcj {
|
||||
|
||||
STDMETHODIMP CCoder::Init()
|
||||
{
|
||||
_bufferPos = 0;
|
||||
x86_Convert_Init(_prevMask);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
STDMETHODIMP_(UInt32) CCoder::Filter(Byte *data, UInt32 size)
|
||||
{
|
||||
UInt32 processed = (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, _encode);
|
||||
_bufferPos += processed;
|
||||
return processed;
|
||||
}
|
||||
|
||||
}}
|
||||
Reference in New Issue
Block a user