def load_string(self, encoding: str = None):
"""
Reads and returns a str instance from the following offset or None if the read offset is 0.
:return: The read text.
"""
offset = self.read_offset()
if not offset:
return None
with self.temporary_seek(offset, io.SEEK_SET):
return self.read_string_0(encoding or self.encoding)
评论列表
文章目录