| 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 |
no test coverage detected