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

Method addItemsGeneralSlowPath

bolt/expression/ComplexWriterTypes.h:508–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506
507 template <typename Input>
508 void addItemsGeneralSlowPath(const Input& sourceArray) {
509 reserve(size() + sourceArray.size());
510 for (const auto& item : sourceArray) {
511 if (item.has_value()) {
512 auto& writer = add_item();
513 writer.copy_from(item.value());
514 } else {
515 add_null();
516 }
517 }
518 }
519
520 template <typename VectorType>
521 void addItemsGeneric(const VectorType& arrayView) {

Callers

nothing calls this directly

Calls 5

sizeFunction · 0.85
has_valueMethod · 0.80
sizeMethod · 0.45
copy_fromMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected