Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ _read_u32
Function
_read_u32
tools/python-3.11.9-amd64/Lib/sunau.py:143–150 ·
view source on GitHub ↗
(file)
Source
from the content-addressed store, hash-verified
141
pass
142
143
def
_read_u32(file):
144
x = 0
145
for
i in range(4):
146
byte = file.read(1)
147
if
not byte:
148
raise
EOFError
149
x = x*256 + ord(byte)
150
return
x
151
152
def
_write_u32(file, x):
153
data = []
Callers
1
initfp
Method · 0.85
Calls
1
read
Method · 0.45
Tested by
no test coverage detected