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

Method Allocate

r/src/array_to_vector.cpp:936–943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

934 : Converter(chunked_array) {}
935
936 SEXP Allocate(R_xlen_t n) const {
937 cpp11::writable::doubles data(n);
938 data.attr("class") = cpp11::writable::strings({"hms", "difftime"});
939
940 // hms difftime is always stored as "seconds"
941 data.attr("units") = cpp11::writable::strings({"secs"});
942 return data;
943 }
944
945 Status Ingest_all_nulls(SEXP data, R_xlen_t start, R_xlen_t n) const {
946 std::fill_n(REAL(data) + start, n, NA_REAL);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected