MCPcopy Create free account
hub / github.com/rthalley/dnspython / get_struct

Method get_struct

dns/wire.py:60–61  ·  view source on GitHub ↗
(self, format: str)

Source from the content-addressed store, hash-verified

58 return int.from_bytes(self.get_bytes(6), "big")
59
60 def get_struct(self, format: str) -> Tuple:
61 return struct.unpack(format, self.get_bytes(struct.calcsize(format)))
62
63 def get_name(self, origin: Optional["dns.name.Name"] = None) -> "dns.name.Name":
64 name = dns.name.from_wire_parser(self)

Callers 15

from_wire_parserMethod · 0.80
_get_questionMethod · 0.80
_get_sectionMethod · 0.80
readMethod · 0.80
from_wire_parserMethod · 0.80
from_wire_parserMethod · 0.80
from_wire_parserMethod · 0.80
from_wire_parserMethod · 0.80
from_wire_parserMethod · 0.80
from_wire_parserMethod · 0.80
from_wire_parserMethod · 0.80
from_wire_parserMethod · 0.80

Calls 1

get_bytesMethod · 0.95

Tested by 1

from_wire_parserMethod · 0.64