MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/openvdb / memUsage

Method memUsage

openvdb/openvdb/util/PagedArray.h:340–343  ·  view source on GitHub ↗

@brief Return the memory footprint of this array in bytes.

Source from the content-addressed store, hash-verified

338
339 /// @brief Return the memory footprint of this array in bytes.
340 size_t memUsage() const
341 {
342 return sizeof(*this) + mPageTable.size() * Page::memUsage();
343 }
344
345 /// @brief Return true if the container contains no elements.
346 bool isEmpty() const { return mSize == 0; }

Callers 1

printMethod · 0.95

Calls 2

memUsageFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected