(self)
| 668 | return rslt |
| 669 | |
| 670 | def _read_next_page(self): |
| 671 | self._current_page_data_subheader_pointers = [] |
| 672 | self._cached_page = self._path_or_buf.read(self._page_length) |
| 673 | if len(self._cached_page) <= 0: |
| 674 | return True |
| 675 | elif len(self._cached_page) != self._page_length: |
| 676 | self.close() |
| 677 | msg = ( |
| 678 | "failed to read complete page from file (read " |
| 679 | f"{len(self._cached_page):d} of {self._page_length:d} bytes)" |
| 680 | ) |
| 681 | raise ValueError(msg) |
| 682 | |
| 683 | self._read_page_header() |
| 684 | if self._current_page_type in const.page_meta_types: |
| 685 | self._process_page_metadata() |
| 686 | |
| 687 | if self._current_page_type not in [ |
| 688 | *const.page_meta_types, |
| 689 | const.page_data_type, |
| 690 | const.page_mix_type, |
| 691 | ]: |
| 692 | return self._read_next_page() |
| 693 | |
| 694 | return False |
| 695 | |
| 696 | def _chunk_to_dataframe(self) -> DataFrame: |
| 697 | n = self._current_row_in_chunk_index |
nothing calls this directly
no test coverage detected