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

Method apply

bolt/vector/arrow/Bridge.cpp:405–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403
404 template <typename F>
405 void apply(F&& f) const {
406 if (changed()) {
407 for (auto [offset, size] : *ranges_) {
408 for (vector_size_t i = 0; i < size; ++i) {
409 f(offset + i);
410 }
411 }
412 } else {
413 for (vector_size_t i = 0; i < total_; ++i) {
414 f(i);
415 }
416 }
417 }
418
419 vector_size_t count() const {
420 if (!changed()) {

Callers 9

gatherFromBufferFunction · 0.45
exportViewsFunction · 0.45
exportStringsFunction · 0.45
exportOffsetsFunction · 0.45
exportOffsetsIPCFunction · 0.45
exportDictionaryFunction · 0.45
exportFlattenedVectorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected