chore: initial commit (extracted from Launchers monorepo)
Plugin: ns7zip v2.0.0 Architectures: x86-ansi, x86-unicode, amd64-unicode License: LGPL-2.1-or-later
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// BcjCoder.cpp
|
||||
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "BcjCoder.h"
|
||||
|
||||
namespace NCompress {
|
||||
namespace NBcj {
|
||||
|
||||
Z7_COM7F_IMF(CCoder2::Init())
|
||||
{
|
||||
_pc = 0;
|
||||
_state = Z7_BRANCH_CONV_ST_X86_STATE_INIT_VAL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Z7_COM7F_IMF2(UInt32, CCoder2::Filter(Byte *data, UInt32 size))
|
||||
{
|
||||
const UInt32 processed = (UInt32)(size_t)(_convFunc(data, size, _pc, &_state) - data);
|
||||
_pc += processed;
|
||||
return processed;
|
||||
}
|
||||
|
||||
}}
|
||||
Reference in New Issue
Block a user