(self, stream, additional_info)
| 870 | |
| 871 | # Major type 4 - lists |
| 872 | def _parse_array(self, stream, additional_info): |
| 873 | if additional_info != self.INDEFINITE_ITEM_ADDITIONAL_INFO: |
| 874 | length = self._parse_unsigned_integer(stream, additional_info) |
| 875 | return [self.parse_data_item(stream) for _ in range(length)] |
| 876 | else: |
| 877 | items = [] |
| 878 | while not self._handle_break_code(stream): |
| 879 | items.append(self.parse_data_item(stream)) |
| 880 | return items |
| 881 | |
| 882 | # Major type 5 - maps |
| 883 | def _parse_map(self, stream, additional_info): |
nothing calls this directly
no test coverage detected