Note: Currently, this function doesn't support shrinking the size of the array.
| 287 | |
| 288 | // Note: Currently, this function doesn't support shrinking the size of the array. |
| 289 | inline uint64_t resize(PageAllocator& pageAllocator, |
| 290 | const transaction::Transaction* transaction, uint64_t newNumElements) { |
| 291 | U defaultVal; |
| 292 | return diskArray.resize(pageAllocator, transaction, newNumElements, getSpan(defaultVal)); |
| 293 | } |
| 294 | |
| 295 | inline uint64_t getNumElements( |
| 296 | transaction::TransactionType trxType = transaction::TransactionType::READ_ONLY) { |