MCPcopy Create free account
hub / github.com/comaps/comaps / read_numeric_string

Function read_numeric_string

tools/python/mwm/mwm_python.py:357–362  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

355
356
357def read_numeric_string(f) -> str:
358 sz = read_varuint(f)
359 if sz & 1 != 0:
360 return str(sz >> 1)
361 sz = (sz >> 1) + 1
362 return f.read(sz).decode("utf-8")
363
364
365def read_multilang(f) -> Dict[str, str]:

Callers 1

__init__Method · 0.85

Calls 2

read_varuintFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected