MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _read_string

Function _read_string

tools/python-3.11.9-amd64/Lib/aifc.py:176–184  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

174 raise EOFError from None
175
176def _read_string(file):
177 length = ord(file.read(1))
178 if length == 0:
179 data = b''
180 else:
181 data = file.read(length)
182 if length & 1 == 0:
183 dummy = file.read(1)
184 return data
185
186_HUGE_VAL = 1.79769313486231e+308 # See <limits.h>
187

Callers 2

_read_comm_chunkMethod · 0.85
_readmarkMethod · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected