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

Method from_string

windows/native_exec/simple_x64.py:70–76  ·  view source on GitHub ↗
(cls, str_base)

Source from the content-addressed store, hash-verified

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

Callers 11

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

Calls

no outgoing calls

Tested by

no test coverage detected