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

Method parse

cscan/extensions.py:96–100  ·  view source on GitHub ↗

Deserialise the extension from binary data.

(self, parser)

Source from the content-addressed store, hash-verified

94 extType=ExtensionType.status_request)
95
96 def parse(self, parser):
97 """Deserialise the extension from binary data."""
98 if parser.getRemainingLength() != 0:
99 raise SyntaxError() # FIXME
100 return self
101
102 def __repr__(self):
103 """Human readable representation of the object."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected