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

Method get_counted_bytes

dns/wire.py:41–43  ·  view source on GitHub ↗
(self, length_size: int = 1)

Source from the content-addressed store, hash-verified

39 return output
40
41 def get_counted_bytes(self, length_size: int = 1) -> bytes:
42 length = int.from_bytes(self.get_bytes(length_size), "big")
43 return self.get_bytes(length)
44
45 def get_remaining(self) -> bytes:
46 return self.get_bytes(self.remaining())

Callers 13

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
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

no test coverage detected