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

Method get_uint16

dns/wire.py:51–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 return struct.unpack("!B", self.get_bytes(1))[0]
50
51 def get_uint16(self) -> int:
52 return struct.unpack("!H", self.get_bytes(2))[0]
53
54 def get_uint32(self) -> int:
55 return struct.unpack("!I", self.get_bytes(4))[0]

Callers 15

test_basicMethod · 0.95
test_nameMethod · 0.95
from_wire_parserMethod · 0.45
from_textMethod · 0.45
from_textMethod · 0.45
from_textMethod · 0.45
from_wire_parserMethod · 0.45
from_wire_parserMethod · 0.45
from_wire_parserMethod · 0.45
from_textMethod · 0.45
from_wire_parserMethod · 0.45
from_textMethod · 0.45

Calls 1

get_bytesMethod · 0.95

Tested by 2

test_basicMethod · 0.76
test_nameMethod · 0.76