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

Method parse

cscan/messages.py:162–166  ·  view source on GitHub ↗

Parse the object from on-the-wire data.

(self, parser)

Source from the content-addressed store, hash-verified

160 self.ticket = None
161
162 def parse(self, parser):
163 """Parse the object from on-the-wire data."""
164 self.ticket_lifetime_hint = parser.get(4)
165 self.ticket = parser.getVarBytes(2)
166 return self
167
168 def __format__(self, formatstr):
169 """Return human-readable representation of the object."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected