Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ allocated_memory
Method
allocated_memory
src/prevector.h:520–526 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
518
}
519
520
size_t allocated_memory() const {
521
if (is_direct()) {
522
return 0;
523
} else {
524
return ((size_t)(sizeof(T))) * _union.indirect_contents.capacity;
525
}
526
}
527
528
value_type* data() {
529
return item_ptr(0);
Callers
1
DynamicUsage
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected