MCPcopy Index your code
hub / github.com/ELMERIKH/PyinMemoryPE / create_unsigned_buffer

Function create_unsigned_buffer

pythonmemorymodule/__init__.py:459–465  ·  view source on GitHub ↗
(sz, indata)

Source from the content-addressed store, hash-verified

457 return rtype.from_address(addressof(indata))
458
459def create_unsigned_buffer(sz, indata):
460 res = as_unsigned_buffer(sz)()
461 for i, c in enumerate(indata):
462 if type(c) in [ str, str, str ]:
463 c = ord(c)
464 res[i] = c
465 return res
466
467def getprocaddr(handle,func):
468 kernel32.GetProcAddress.argtypes = [c_void_p, c_char_p]

Callers 2

load_moduleMethod · 0.85
copy_sectionsMethod · 0.85

Calls 1

as_unsigned_bufferFunction · 0.85

Tested by

no test coverage detected