MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / apply

Method apply

src/Functions/FunctionsStringHashFixedString.cpp:202–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 };
201
202 static void apply(const char * begin, size_t size, unsigned char * out_char_data)
203 {
204 static_assert(LLVM_BLAKE3_OUT_LEN == ImplBLAKE3::length);
205 auto & result = *reinterpret_cast<std::array<uint8_t, LLVM_BLAKE3_OUT_LEN> *>(out_char_data);
206
207 llvm::BLAKE3 hasher;
208 if (size > 0)
209 hasher.update(llvm::StringRef(begin, size));
210 hasher.final(result);
211 }
212};
213
214#endif

Callers 1

executeImplMethod · 0.45

Calls 2

finalMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected