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

Method add_items

bolt/expression/ComplexWriterTypes.h:280–294  ·  view source on GitHub ↗

Copy from nullable ArrayView.

Source from the content-addressed store, hash-verified

278
279 // Copy from nullable ArrayView.
280 void add_items(
281 const typename VectorExec::template resolver<Array<V>>::in_type&
282 arrayView) {
283 if constexpr (isGenericType<V>::value) {
284 addItemsGeneric(arrayView);
285 } else if constexpr (hasStringValue) {
286 addItemsStringFastPath<SimpleTypeTrait<V>::typeKind>(arrayView);
287 } else if constexpr (std::is_same_v<V, bool>) {
288 addItemsBoolFastPath(arrayView);
289 } else if constexpr (provide_std_interface<V>) {
290 addItemsPrimitiveFastPath<V>(arrayView);
291 } else {
292 addItemsGeneralSlowPath(arrayView);
293 }
294 }
295
296 // Any vector type with std-like optional-free interface.
297 template <typename VectorType>

Callers 9

callNullFreeMethod · 0.80
callMethod · 0.80
callMethod · 0.80
callMethod · 0.80
callNullableMethod · 0.80
callNullableMethod · 0.80
callMethod · 0.80
callNullFreeMethod · 0.80
TEST_FFunction · 0.80

Calls 3

operator[]Method · 0.95
sizeMethod · 0.45
copy_fromMethod · 0.45

Tested by 3

callMethod · 0.64
callNullFreeMethod · 0.64
TEST_FFunction · 0.64