| 425 | using Base::IsMaterialized; |
| 426 | |
| 427 | static R_xlen_t Length(SEXP alt) { |
| 428 | if (IsMaterialized(alt)) { |
| 429 | return Rf_xlength(Representation(alt)); |
| 430 | } else { |
| 431 | return GetChunkedArray(alt)->length(); |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | // redefining because data2 is a paired list with the representation as the |
| 436 | // first node: the CAR |