def _parse_ztxt_header(raw): h = Storage() h.version, h.record_count, h.data_size, h.record_size, h.number_bookmarks, h.bookmark_record, h.number_annotations, h.annotation_record, h.flags, _reserved, h.crc32, = struct.unpack( ">HHLHHHHHBBL", raw[0:24] ) return h
def _parse_ereader_header202(raw): # Unfortunately, this header format is mostly unknown h = Storage() h.version, _unknown, h.non_text_records, = struct.unpack(">H6sH", raw[:10]) return h