MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / from_string

Method from_string

windows/native_exec/simple_x86.py:65–71  ·  view source on GitHub ↗
(cls, str_base)

Source from the content-addressed store, hash-verified

63
64 @classmethod
65 def from_string(cls, str_base):
66 l = []
67 for c in bytearray(reversed(str_base)):
68 for i in range(8):
69 l.append(c & 1)
70 c = c >> 1
71 return cls(len(str_base) * 8, list(reversed(l)))
72
73 @classmethod
74 def from_int(cls, size, x):

Callers 8

accept_argMethod · 0.45
accept_argMethod · 0.45
accept_argMethod · 0.45
accept_argMethod · 0.45
accept_argMethod · 0.45
__init__Method · 0.45
compute_displacementMethod · 0.45
accept_argMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected