| 1162 | : Converter(chunked_array) {} |
| 1163 | |
| 1164 | SEXP Allocate(R_xlen_t n) const { |
| 1165 | auto extension_type = |
| 1166 | dynamic_cast<const RExtensionType*>(chunked_array_->type().get()); |
| 1167 | if (extension_type == nullptr) { |
| 1168 | Rf_error("Converter_Extension can't be used with a non-R extension type"); |
| 1169 | } |
| 1170 | |
| 1171 | return extension_type->Convert(chunked_array_); |
| 1172 | } |
| 1173 | |
| 1174 | // At this point we have already done the conversion |
| 1175 | Status Ingest_all_nulls(SEXP data, R_xlen_t start, R_xlen_t n) const { |