MCPcopy
hub / github.com/knownsec/pocsuite3 / decode

Method decode

pocsuite3/lib/helper/java/serialization.py:644–656  ·  view source on GitHub ↗
(self, io)

Source from the content-addressed store, hash-verified

642 self.super_class = None
643
644 def decode(self, io):
645 if self.stream:
646 self.stream.add_reference(self)
647 interfaces_length = self.decode_interfaces_length(io)
648 for i in range(0, interfaces_length):
649 utf = Utf(self.stream)
650 interface = utf.decode(io)
651 self.interfaces.append(interface)
652 annotation = Annotation(self.stream)
653 super_class = ClassDesc(self.stream)
654 self.class_annotation = annotation.decode(io)
655 self.super_class = super_class.decode(io)
656 return self
657
658 def encode(self):
659 if self.class_annotation.__class__ is not Annotation and self.super_class.__class__ is not ClassDesc:

Callers 1

decode_contentFunction · 0.95

Calls 8

decodeMethod · 0.95
decodeMethod · 0.95
decodeMethod · 0.95
UtfClass · 0.85
AnnotationClass · 0.85
ClassDescClass · 0.85
add_referenceMethod · 0.80

Tested by

no test coverage detected