L L4D2node

Hunk_AllocNameAlignedClear_

0x00197360 · 78 bytes · __cdecl

_Z27Hunk_AllocNameAlignedClear_iiPKc

Decompiled

undefined (3 params)

/* Hunk_AllocNameAlignedClear_(int, int, char const*) */

uint Hunk_AllocNameAlignedClear_(int param_1,int param_2,char *param_3)

{
  void *__s;
  
  __s = (void *)Hunk_AllocName(param_1 + param_2,param_3,true);
  memset(__s,0,param_1 + param_2);
  return (int)__s + param_2 + -1 & -param_2;
}

SourceMod gamedata

paste into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)