Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rthalley/dnspython
/ get_uint32
Method
get_uint32
dns/wire.py:54–55 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
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]
56
57
def
get_uint48(self) -> int:
58
return
int.from_bytes(self.get_bytes(6),
"big"
)
Callers
5
test_basic
Method · 0.95
from_text
Method · 0.45
from_text
Method · 0.45
from_text
Method · 0.45
from_text
Method · 0.45
Calls
1
get_bytes
Method · 0.95
Tested by
1
test_basic
Method · 0.76