Files
nsis-plugin-ns7zip/versions/26.00/CPP/7zip/Compress/BcjCoder.cpp
T
Simone d074cc7c07 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
2026-04-29 14:07:51 +02:00

25 lines
412 B
C++

// 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;
}
}}