| 1184 | : Converter(chunked_array) {} |
| 1185 | |
| 1186 | SEXP Allocate(R_xlen_t n) const { |
| 1187 | auto extension_type = |
| 1188 | dynamic_cast<const RExtensionType*>(chunked_array_->type().get()); |
| 1189 | if (extension_type == nullptr) { |
| 1190 | Rf_error("Converter_Extension can't be used with a non-R extension type"); |
| 1191 | } |
| 1192 | |
| 1193 | return extension_type->Convert(chunked_array_); |
| 1194 | } |
| 1195 | |
| 1196 | // At this point we have already done the conversion |
| 1197 | Status Ingest_all_nulls(SEXP data, R_xlen_t start, R_xlen_t n) const { |