L L4D2node

CCountedStringPool::FreeAll

0x00054710 · 208 bytes · __thiscall

_ZN18CCountedStringPool7FreeAllEv

Decompiled

undefined (1 param)

/* CCountedStringPool::FreeAll() */

void __thiscall CCountedStringPool::FreeAll(CCountedStringPool *this)

{
  void *pvVar1;
  int iVar2;
  
  iVar2 = 0;
  if (0 < *(int *)(this + 0x10)) {
    do {
      *(undefined2 *)(*(int *)(this + 4) + iVar2 * 2) = 0;
      iVar2 = iVar2 + 1;
    } while (iVar2 < *(int *)(this + 0x10));
  }
  *(undefined2 *)(this + 0x2c) = 0;
  if (0 < *(int *)(this + 0x24)) {
    iVar2 = 0;
    do {
      pvVar1 = *(void **)(*(int *)(this + 0x18) + iVar2 * 8);
      if (pvVar1 != (void *)0x0) {
        operator_delete__(pvVar1);
        *(undefined4 *)(*(int *)(this + 0x18) + iVar2 * 8) = 0;
        *(undefined1 *)(*(int *)(this + 0x18) + 6 + iVar2 * 8) = 0;
        *(undefined2 *)(*(int *)(this + 0x18) + 4 + iVar2 * 8) = 0;
      }
      iVar2 = iVar2 + 1;
    } while (iVar2 < *(int *)(this + 0x24));
  }
  *(undefined4 *)(this + 0x24) = 0;
  CUtlVector<CCountedStringPool::hash_item_t,CUtlMemory<CCountedStringPool::hash_item_t,int>>::
  GrowVector((CUtlVector<CCountedStringPool::hash_item_t,CUtlMemory<CCountedStringPool::hash_item_t,int>>
              *)(this + 0x18),1);
  CUtlVector<CCountedStringPool::hash_item_t,CUtlMemory<CCountedStringPool::hash_item_t,int>>::
  ShiftElementsRight((CUtlVector<CCountedStringPool::hash_item_t,CUtlMemory<CCountedStringPool::hash_item_t,int>>
                      *)(this + 0x18),0,1);
  **(undefined4 **)(this + 0x18) = 0;
  *(undefined1 *)(*(int *)(this + 0x18) + 6) = 0;
  *(undefined2 *)(*(int *)(this + 0x18) + 4) = 0;
  return;
}

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)