MCPcopy
hub / github.com/Gallopsled/pwntools / replace

Method replace

pwnlib/fmtstr.py:236–244  ·  view source on GitHub ↗

Return a new write with updated fields (everything that is not None is set to the new value)

(self, start=None, size=None, integer=None, mask=None)

Source from the content-addressed store, hash-verified

234 return padding
235
236 def replace(self, start=None, size=None, integer=None, mask=None):
237 """
238 Return a new write with updated fields (everything that is not None is set to the new value)
239 """
240 start = self.start if start is None else start
241 size = self.size if size is None else size
242 integer = self.integer if integer is None else integer
243 mask = self.mask if mask is None else mask
244 return AtomWrite(start, size, integer, mask)
245
246 def union(self, other):
247 """

Callers 6

merge_atoms_overlappingFunction · 0.95
provider_libc_ripFunction · 0.45
linkcode_resolveFunction · 0.45
check_outputMethod · 0.45
android.pyFile · 0.45

Calls 1

AtomWriteClass · 0.85

Tested by

no test coverage detected