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

Method Allocate

r/src/array_to_vector.cpp:991–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989 : Converter(chunked_array) {}
990
991 SEXP Allocate(R_xlen_t n) const {
992 cpp11::writable::doubles data(n);
993 data.attr("class") = "difftime";
994
995 // difftime is always stored as "seconds"
996 data.attr("units") = cpp11::writable::strings({"secs"});
997 return data;
998 }
999
1000 Status Ingest_all_nulls(SEXP data, R_xlen_t start, R_xlen_t n) const {
1001 std::fill_n(REAL(data) + start, n, NA_REAL);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected