| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected