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

Method push

flow/Profiler.actor.cpp:106–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 OutputBuffer() { output.reserve(100000); }
105 void clear() { output.clear(); }
106 void push(void* ptr) { // async signal safe!
107 if (output.size() < output.capacity())
108 output.push_back(ptr);
109 }
110 Future<Void> writeTo(Reference<SyncFileForSim> file, int64_t& offset) {
111 int64_t offs = offset;
112 offset += sizeof(void*) * output.size();

Callers 1

signal_handlerMethod · 0.45

Calls 3

sizeMethod · 0.45
capacityMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected