MCPcopy Create free account
hub / github.com/HexHive/NASS / to_bytes

Method to_bytes

fuzz/fuzzparcel.py:202–208  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 self.size = size
201 self.data = data
202 def to_bytes(self):
203 assert self.size != 0, "lenght is 0!!!"
204 out = b""
205 out += self.argtype.value.to_bytes(4, "little")
206 out += self.size.to_bytes(4, "little")
207 out += self.data
208 return out
209 def same_arg(self, other):
210 return self.argtype == other.argtype and self.size == other.size
211 def serialize(self):

Callers

nothing calls this directly

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected