MCPcopy Create free account
hub / github.com/Snapchat/Valdi / make

Method make

valdi_core/src/valdi_core/cpp/Utils/ValueArray.cpp:124–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124Ref<ValueArray> ValueArray::make(const Value* begin, const Value* end) {
125 auto array = ValueArray::make(static_cast<size_t>(end - begin));
126 array->copy(begin, end);
127 return array;
128}
129
130Ref<ValueArray> ValueArray::make(size_t size) {
131 InlineContainerAllocator<ValueArray, Value> allocator;

Callers

nothing calls this directly

Calls 2

copyMethod · 0.65
allocateMethod · 0.45

Tested by

no test coverage detected