Definition at line 53 of file reference_database_file.cuh.
◆ bytes()
| Result< void > cuddl::detail::database_file_reader::bytes |
( |
void * |
destination, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Definition at line 59 of file reference_database_file.cuh.
59 {
61 size > static_cast<size_t>(std::numeric_limits<std::streamsize>::max())) {
63 }
64 if (size != 0) {
65 input.read(
static_cast<char*
>(destination),
static_cast<std::streamsize
>(size));
68 }
71 }
Result< void > Ok() noexcept
Success return for Result<void>; same as return {}.
cuda::std::unexpected< Error > Err(Error error)
Failure return; converts to any Result<T> via cuda::std::unexpected.
static Error invalid_argument(std::string message)
static Error resource(std::string message)
◆ value()
template<typename T >
| Result< void > cuddl::detail::database_file_reader::value |
( |
T & |
item | ) |
|
|
inline |
Definition at line 74 of file reference_database_file.cuh.
74 {
78 }
#define CUDDL_TRY(expr)
Propagates a cuddl::Result failure from the enclosing function (GNU statement expression).
T database_file_little_endian(T value)
Result< void > bytes(void *destination, size_t size)
◆ words()
template<typename T >
| Result< void > cuddl::detail::database_file_reader::words |
( |
std::vector< T > & |
items | ) |
|
|
inline |
Definition at line 81 of file reference_database_file.cuh.
81 {
83 if constexpr (std::endian::native != std::endian::little) {
84 for (
auto& item :
items) {
86 }
87 }
89 }
◆ checksum
| uint32_t cuddl::detail::database_file_reader::checksum = 0 |
◆ input
| std::ifstream cuddl::detail::database_file_reader::input |
◆ remaining
| uint64_t cuddl::detail::database_file_reader::remaining {} |
The documentation for this struct was generated from the following file: