Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_basic
Method · 0.95
test_name
Method · 0.95
from_wire_parser
Method · 0.45
from_text
Method · 0.45
from_text
Method · 0.45
from_text
Method · 0.45
from_wire_parser
Method · 0.45
from_wire_parser
Method · 0.45
from_wire_parser
Method · 0.45
from_text
Method · 0.45
from_wire_parser
Method · 0.45
from_text
Method · 0.45
Calls
1
get_bytes
Method · 0.95
Tested by
2
test_basic
Method · 0.76
test_name
Method · 0.76