(self, addr: int, s: str, encoding: str)
| 101 | return ret.decode('latin1') |
| 102 | |
| 103 | def __write_string(self, addr: int, s: str, encoding: str): |
| 104 | self.write(addr, bytes(s, encoding) + b'\x00') |
| 105 | |
| 106 | # TODO: this is an obsolete utility method that should not be used anymore |
| 107 | # and here for backward compatibility. use QlOsUtils.read_cstring instead |