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

Method Allocate

r/src/array_to_vector.cpp:1175–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1173 list_size_(list_size) {}
1174
1175 SEXP Allocate(R_xlen_t n) const {
1176 cpp11::writable::list res(n);
1177 Rf_classgets(res, arrow::r::data::classes_arrow_fixed_size_list);
1178 res.attr(arrow::r::symbols::list_size) = Rf_ScalarInteger(list_size_);
1179
1180 // an empty R object of the type of the elements, stored as the list's ptype
1181 res.attr(arrow::r::symbols::ptype) = values_converter_->AllocateSlice(0);
1182
1183 return res;
1184 }
1185
1186 Status Ingest_all_nulls(SEXP data, R_xlen_t start, R_xlen_t n) const {
1187 // nothing to do, list contain NULL by default

Callers

nothing calls this directly

Calls 1

AllocateSliceMethod · 0.45

Tested by

no test coverage detected