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

Method toStringRef

fdbserver/VersionedBTree.actor.cpp:4160–4165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4158 }
4159
4160 StringRef toStringRef(Arena& arena) const {
4161 StringRef c = makeString(size(), arena);
4162 memcpy(mutateString(c), a.begin(), a.size());
4163 memcpy(mutateString(c) + a.size(), b.begin(), b.size());
4164 return c;
4165 }
4166
4167 Standalone<StringRef> toStringRef() const {
4168 Arena a;

Callers 11

peekMessagesFromMemoryFunction · 0.45
peekMessagesFromMemoryFunction · 0.45
peekMessagesFromMemoryFunction · 0.45
log_opMethod · 0.45
readOpDataMethod · 0.45
commitMessagesFunction · 0.45
peekMessagesFromMemoryFunction · 0.45

Calls 7

makeStringFunction · 0.85
memcpyFunction · 0.85
mutateStringFunction · 0.85
toStringRefFunction · 0.70
sizeFunction · 0.50
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected