MCPcopy Create free account
hub / github.com/ZeroIntensity/pointers.py / __add__

Method __add__

src/pointers/stack_pointer.py:54–59  ·  view source on GitHub ↗
(self, amount: int)

Source from the content-addressed store, hash-verified

52 return f"StackAllocatedPointer(address={self.address}, size={self.size})" # noqa
53
54 def __add__(self, amount: int):
55 return StackAllocatedPointer(
56 self.ensure() + amount,
57 self.size,
58 self.assigned,
59 )
60
61 def __sub__(self, amount: int):
62 return StackAllocatedPointer(

Callers

nothing calls this directly

Calls 2

ensureMethod · 0.45

Tested by

no test coverage detected