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

Method allocate

src/include/function/gds/gds_object_manager.h:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 void allocate(const common::offset_t size, storage::MemoryManager* mm, bool initializeToZero) {
52 allocation = mm->allocateBuffer(initializeToZero, size * sizeof(T));
53 data = std::span<T>(reinterpret_cast<T*>(allocation->getData()), size);
54 this->size = size;
55 }
56
57 common::offset_t getSize() const { return size; }
58

Callers 4

switchToDenseMethod · 0.45
initMethod · 0.45
switchToDenseMethod · 0.45
initMethod · 0.45

Calls 2

allocateBufferMethod · 0.80
getDataMethod · 0.45

Tested by

no test coverage detected