MCPcopy Create free account
hub / github.com/apache/arrow / Allocate

Method Allocate

r/src/array_to_vector.cpp:1252–1258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250 : Converter(chunked_array) {}
1251
1252 SEXP Allocate(R_xlen_t n) const {
1253 SEXP data = PROTECT(Rf_allocVector(LGLSXP, n));
1254 std::fill_n(LOGICAL(data), n, NA_LOGICAL);
1255 Rf_classgets(data, Rf_mkString("vctrs_unspecified"));
1256 UNPROTECT(1);
1257 return data;
1258 }
1259
1260 Status Ingest_all_nulls(SEXP data, R_xlen_t start, R_xlen_t n) const {
1261 return Status::OK();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected