MCPcopy Create free account
hub / github.com/mozilla/cipherscan / parse

Method parse

cscan/extensions.py:74–77  ·  view source on GitHub ↗

Deserialise the extension from binary data.

(self, parser)

Source from the content-addressed store, hash-verified

72 self.data = bytearray(0)
73
74 def parse(self, parser):
75 """Deserialise the extension from binary data."""
76 self.data = parser.bytes
77 return self
78
79 def __format__(self, formatstr):
80 """Print extension data in human-readable form."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected