store the Array as an external pointer in data1, mark as immutable
| 94 | struct AltrepVectorBase { |
| 95 | // store the Array as an external pointer in data1, mark as immutable |
| 96 | static SEXP Make(const std::shared_ptr<ChunkedArray>& chunked_array) { |
| 97 | SEXP alt = R_new_altrep( |
| 98 | Impl::class_t, |
| 99 | external_pointer<ArrowAltrepData>(new ArrowAltrepData(chunked_array)), |
| 100 | R_NilValue); |
| 101 | MARK_NOT_MUTABLE(alt); |
| 102 | |
| 103 | return alt; |
| 104 | } |
| 105 | |
| 106 | // Is the vector materialized, i.e. does the data2 slot contain a |
| 107 | // standard R vector with the same data as the array. |
nothing calls this directly
no outgoing calls
no test coverage detected