12static_assert(
sizeof(
size_t) ==
sizeof(
uint64_t),
"cuSBF assumes size_t is 64-bit");
19 return static_cast<size_t>(
mebibytes) << 20;
36 return std::numeric_limits<size_t>::max();
size_t fastx_host_chunk_max_bytes()
Optional host assembly byte cap before flush (debug / low-RAM safety valve).
constexpr bool fastx_chunk_reached_host_byte_limit(size_t host_chunk_max_bytes, uint64_t raw_chunk_bytes) noexcept
True when raw_chunk_bytes reaches the optional host assembly cap.
uint64_t parse_env_mebibytes(std::string_view value)
Parses a decimal mebibyte count from value.
size_t parse_host_chunk_max_bytes(const char *env_name)
consteval bool separatorPositionAlwaysEncodesInvalid(char *input, uint64_t separatorPosition, uint64_t index)
Recursively tests whether placing the separator byte at any position in an input of valid bytes alway...
std::string_view getenv_value(const char *env_name)
Reads env_name via getenv, or an empty view when unset.