L L4D2node

TZip::istore

0x000ee600 · 106 bytes · __thiscall

_ZN4TZip6istoreEv

Decompiled

undefined (1 param)

/* TZip::istore() */

undefined4 __thiscall TZip::istore(TZip *this)

{
  uint uVar1;
  uint uVar2;
  int local_20;
  
  local_20 = 0;
  while( true ) {
    uVar2 = read(this,(char *)(this + 0x68),0x4000);
    if (0xfffffffd < uVar2 - 1) {
      *(int *)(this + 100) = local_20;
      return 0;
    }
    uVar1 = write(this,(char *)(this + 0x68),uVar2);
    if (uVar1 != uVar2) break;
    local_20 = local_20 + uVar1;
  }
  return 0x60000;
}

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)