MCPcopy Create free account
hub / github.com/qilingframework/qiling / alloc

Method alloc

qiling/os/windows/fiber.py:26–32  ·  view source on GitHub ↗
(self, cb: Optional[int] = None)

Source from the content-addressed store, hash-verified

24 self.ql = ql
25
26 def alloc(self, cb: Optional[int] = None) -> int:
27 idx = self.idx
28 self.idx += 1
29
30 self.fibers[idx] = Fiber(idx, cb)
31
32 return idx
33
34 def free(self, idx: int) -> bool:
35 if idx not in self.fibers:

Callers 15

createMethod · 0.45
__init__Method · 0.45
__heap_allocFunction · 0.45
__init__Method · 0.45
__alloc_strings_arrayFunction · 0.45
hook___p__fmodeFunction · 0.45
hook___p__commodeFunction · 0.45
hook___p__environFunction · 0.45
hook___p___argvFunction · 0.45
hook___p___argcFunction · 0.45
hook__onexitFunction · 0.45
hook___dllonexitFunction · 0.45

Calls 1

FiberClass · 0.85

Tested by

no test coverage detected