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

Method maybeLoadData

bolt/exec/OutputBuffer.cpp:194–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void DestinationBuffer::maybeLoadData(ArbitraryBuffer* buffer) {
195 BOLT_CHECK(!buffer->empty() || buffer->hasNoMoreData());
196 if (notify_ == nullptr) {
197 return;
198 }
199 if (aliveCheck_ != nullptr && !aliveCheck_()) {
200 // Skip load data to an inactive destination buffer.
201 clearNotify();
202 return;
203 }
204 BOLT_CHECK_GT(notifyMaxBytes_, 0);
205 loadData(buffer, notifyMaxBytes_);
206}
207
208void DestinationBuffer::loadData(ArbitraryBuffer* buffer, uint64_t maxBytes) {
209 auto pages = buffer->getPages(maxBytes);

Callers 3

checkIfDoneMethod · 0.80
TEST_FFunction · 0.80

Calls 2

hasNoMoreDataMethod · 0.80
emptyMethod · 0.45

Tested by 1

TEST_FFunction · 0.64