BZ2_bzBuffToBuffDecompress
0x002907d0 · 257 bytes · unknown
Decompiled
undefined (0 params)
int BZ2_bzBuffToBuffDecompress
(int param_1,int *param_2,int param_3,undefined4 param_4,uint param_5,uint param_6)
{
int iVar1;
int iVar2;
int local_4c;
undefined4 local_48;
int local_3c;
int local_38;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
if ((((param_1 != 0) && (param_2 != (int *)0x0)) && (param_3 != 0)) &&
((param_5 < 2 && (param_6 < 5)))) {
local_28 = 0;
local_24 = 0;
local_20 = 0;
iVar1 = BZ2_bzDecompressInit(&local_4c,param_6,param_5);
if (iVar1 == 0) {
local_3c = param_1;
local_4c = param_3;
local_48 = param_4;
local_38 = *param_2;
iVar2 = BZ2_bzDecompress(&local_4c);
if (iVar2 == 0) {
if (local_38 == 0) {
BZ2_bzDecompressEnd(&local_4c);
iVar1 = -8;
}
else {
BZ2_bzDecompressEnd(&local_4c);
iVar1 = -7;
}
}
else {
if (iVar2 != 4) {
BZ2_bzDecompressEnd(&local_4c);
return iVar2;
}
*param_2 = *param_2 - local_38;
BZ2_bzDecompressEnd(&local_4c);
}
}
return iVar1;
}
return -2;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
⚠ This function has no mangled symbol — it may be internal/static. The
Linux gamedata field uses @-prefix symbol resolution which
requires an exported mangled name. You'll need a Linux byte signature
for this one (extract via extract_signature.java).
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.