Array_FastCopy
0x00146800 · 250 bytes · __cdecl
_Z14Array_FastCopyPK8SendPropPK8RecvPropPKhPhi
Decompiled
undefined (5 params)
/* Array_FastCopy(SendProp const*, RecvProp const*, unsigned char const*, unsigned char*, int) */
void Array_FastCopy(SendProp *param_1,RecvProp *param_2,uchar *param_3,uchar *param_4,int param_5)
{
int iVar1;
int iVar2;
int iVar3;
uchar *puVar4;
uchar *puVar5;
int local_40;
int local_38;
undefined1 local_34 [12];
undefined4 local_28;
int local_24;
int local_20;
local_28 = 1;
iVar1 = *(int *)(param_2 + 0x18);
iVar2 = *(int *)(param_1 + 0x18);
local_20 = param_5;
local_38 = iVar1;
if (*(code **)(param_1 + 0x1c) == (code *)0x0) {
local_40 = *(int *)(param_1 + 0x20);
}
else {
iVar3 = (**(code **)(param_1 + 0x1c))(param_3,param_5);
local_40 = *(int *)(param_1 + 0x20);
if (iVar3 <= *(int *)(param_1 + 0x20)) {
local_40 = iVar3;
}
}
if (*(code **)(param_2 + 0x1c) != (code *)0x0) {
(**(code **)(param_2 + 0x1c))(param_4,param_5,local_40);
}
local_24 = 0;
puVar5 = param_3 + *(int *)(iVar2 + 0x4c);
puVar4 = param_4 + *(int *)(iVar1 + 0x2c);
if (0 < local_40) {
do {
(**(code **)(iVar2 + 0x40))(iVar2,param_3,puVar5,local_34,local_24,param_5);
puVar5 = puVar5 + *(int *)(param_1 + 0x24);
(**(code **)(iVar1 + 0x20))(&local_38,param_4,puVar4);
puVar4 = puVar4 + *(int *)(param_2 + 0x30);
local_24 = local_24 + 1;
} while (local_24 < local_40);
}
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)
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.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.