Definition at line 14 of file reference_index_file.cuh.
◆ bytes()
| Result< void > cuddl::detail::reference_index_digest::bytes |
( |
void const * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Definition at line 17 of file reference_index_file.cuh.
17 {
20 }
__host__ __device__ uint64_t xxhash64(const uint8_t *bytes, uint64_t size, uint64_t seed)
Computes xxHash-64 over a byte range without allocating or copying it.
Result< void > Ok() noexcept
Success return for Result<void>; same as return {}.
◆ value()
template<typename T >
| Result< void > cuddl::detail::reference_index_digest::value |
( |
T |
item | ) |
|
|
inline |
Definition at line 23 of file reference_index_file.cuh.
23 {
25 return bytes(&item,
sizeof(item));
26 }
T database_file_little_endian(T value)
Result< void > bytes(void const *data, size_t size)
◆ words()
template<typename T >
| Result< void > cuddl::detail::reference_index_digest::words |
( |
std::span< T const > |
items | ) |
|
|
inline |
Definition at line 29 of file reference_index_file.cuh.
29 {
30 if constexpr (std::endian::native == std::endian::little) {
32 } else {
33 std::vector<T> little_endian(
items.begin(),
items.end());
34 for (auto& item : little_endian) {
36 }
37 return bytes(little_endian.data(),
items.size_bytes());
38 }
39 }
◆ digest
| uint64_t cuddl::detail::reference_index_digest::digest = 0 |
The documentation for this struct was generated from the following file: