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

Function copyWords

bolt/serializers/PrestoSerializer.cpp:2160–2176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2158
2159template <typename T>
2160void copyWords(
2161 T* destination,
2162 const int32_t* indices,
2163 int32_t numIndices,
2164 const T* values,
2165 bool isLongDecimal = false) {
2166 if (std::is_same_v<T, int128_t> && isLongDecimal) {
2167 for (auto i = 0; i < numIndices; ++i) {
2168 reinterpret_cast<int128_t*>(destination)[i] = toJavaDecimalValue(
2169 reinterpret_cast<const int128_t*>(values)[indices[i]]);
2170 }
2171 return;
2172 }
2173 for (auto i = 0; i < numIndices; ++i) {
2174 destination[i] = values[indices[i]];
2175 }
2176}
2177
2178template <typename T>
2179void copyWordsWithRows(

Callers 2

copyWordsWithRowsFunction · 0.85
serializeFlatVectorFunction · 0.85

Calls 1

toJavaDecimalValueFunction · 0.85

Tested by

no test coverage detected