MCPcopy Create free account
hub / github.com/bytedance/bolt / getBuffer

Method getBuffer

bolt/exec/OutputBufferManager.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41std::shared_ptr<OutputBuffer> OutputBufferManager::getBuffer(
42 const std::string& taskId) {
43 return buffers_.withLock([&](auto& buffers) {
44 auto it = buffers.find(taskId);
45 BOLT_CHECK(
46 it != buffers.end(), "Output buffers for task not found: {}", taskId);
47 return it->second;
48 });
49}
50
51std::shared_ptr<OutputBuffer> OutputBufferManager::getBufferIfExists(
52 const std::string& taskId) {

Callers 3

javaStyleSplitRegexFunction · 0.45
extractFunction · 0.45
extractAllFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected