(f, plain: bool = False, decode: bool = True)
| 344 | |
| 345 | |
| 346 | def read_string(f, plain: bool = False, decode: bool = True) -> AnyStr: |
| 347 | length = read_varuint(f) + (0 if plain else 1) |
| 348 | s = f.read(length) |
| 349 | return s.decode("utf-8") if decode else s |
| 350 | |
| 351 | |
| 352 | def read_uint_array(f) -> List[int]: |
no test coverage detected