MCPcopy Create free account
hub / github.com/apple/foundationdb / makeReference

Method makeReference

flow/Arena.cpp:272–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void ArenaBlock::makeReference(ArenaBlock* next) {
273 ArenaBlockRef* r = (ArenaBlockRef*)((char*)getData() + bigUsed);
274 makeDefined(r, sizeof(ArenaBlockRef));
275 r->aligned4kBufferSize = 0;
276 r->next = next;
277 r->nextBlockOffset = nextBlockOffset;
278 makeNoAccess(r, sizeof(ArenaBlockRef));
279 nextBlockOffset = bigUsed;
280 bigUsed += sizeof(ArenaBlockRef);
281 totalSizeEstimate += next->estimatedTotalSize();
282}
283
284void* ArenaBlock::make4kAlignedBuffer(uint32_t size) {
285 ArenaBlockRef* r = (ArenaBlockRef*)((char*)getData() + bigUsed);

Callers 2

dependOnMethod · 0.95
createMethod · 0.80

Calls 3

makeDefinedFunction · 0.85
makeNoAccessFunction · 0.85
estimatedTotalSizeMethod · 0.80

Tested by

no test coverage detected