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

Method seek

dns/wire.py:69–74  ·  view source on GitHub ↗
(self, where: int)

Source from the content-addressed store, hash-verified

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
71 # after such a seek, you'll get an exception as expected.)
72 if where < 0 or where > self.end:
73 raise dns.exception.FormError
74 self.current = where
75
76 @contextlib.contextmanager
77 def restrict_to(self, size: int) -> Iterator:

Callers 15

__init__Method · 0.95
test_seekMethod · 0.95
prefixed_lengthFunction · 0.45
_rollbackMethod · 0.45
_temporarily_seek_toMethod · 0.45
from_wire_parserFunction · 0.45
_get_sectionMethod · 0.45
get_delegationMethod · 0.45
is_glueMethod · 0.45
update_glue_flagMethod · 0.45
boundsMethod · 0.45

Calls

no outgoing calls

Tested by 7

test_seekMethod · 0.76
test_parkingFunction · 0.36
test_automatic_parkingFunction · 0.36
testTorture1Method · 0.36