MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / resize

Method resize

src/include/storage/disk_array.h:289–293  ·  view source on GitHub ↗

Note: Currently, this function doesn't support shrinking the size of the array.

Source from the content-addressed store, hash-verified

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) {

Callers 1

resizeMethod · 0.45

Calls 1

getSpanFunction · 0.85

Tested by

no test coverage detected