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

Method get_name

dns/wire.py:63–67  ·  view source on GitHub ↗
(self, origin: Optional["dns.name.Name"] = None)

Source from the content-addressed store, hash-verified

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)
65 if origin:
66 name = name.relativize(origin)
67 return name
68
69 def seek(self, where: int) -> None:
70 # Note that seeking to the end is OK! (If you try to read

Callers 15

test_nameMethod · 0.95
test_relativized_nameMethod · 0.95
test_compressed_nameMethod · 0.95
from_wire_parserMethod · 0.45
_get_questionMethod · 0.45
_get_sectionMethod · 0.45
readMethod · 0.45
from_textMethod · 0.45
from_wire_parserMethod · 0.45
from_textMethod · 0.45
from_wire_parserMethod · 0.45
from_textMethod · 0.45

Calls 2

relativizeMethod · 0.80
from_wire_parserMethod · 0.45

Tested by 3

test_nameMethod · 0.76
test_relativized_nameMethod · 0.76
test_compressed_nameMethod · 0.76