Various other stuff module

Contents

Methods that don't belong anywhere but are still very useful in many occasions.

Classes

struct zpl_random

Typedefs

using zpl_random = struct zpl_random

Functions

auto zpl_random_init(zpl_random* r) -> void
auto zpl_random_gen_u32(zpl_random* r) -> u32
auto zpl_random_gen_u32_unique(zpl_random* r) -> u32
auto zpl_random_gen_u64(zpl_random* r) -> u64
auto zpl_random_gen_isize(zpl_random* r) -> isize
auto zpl_random_range_i64(zpl_random* r, i64 lower_inc, i64 higher_inc) -> i64
auto zpl_random_range_isize(zpl_random* r, isize lower_inc, isize higher_inc) -> isize
auto zpl_random_range_f64(zpl_random* r, f64 lower_inc, f64 higher_inc) -> f64
auto zpl_exit(u32 code) -> void
auto zpl_yield(void) -> void
auto zpl_get_env(const char* name) -> const char*
Returns allocated buffer.
auto zpl_get_env_buf(const char* name) -> const char*
auto zpl_get_env_str(const char* name) -> zpl_string
auto zpl_set_env(const char* name, const char* value) -> void
auto zpl_unset_env(const char* name) -> void
auto zpl_endian_swap16(u16 i) -> u16
auto zpl_endian_swap32(u32 i) -> u32
auto zpl_endian_swap64(u64 i) -> u64
auto zpl_count_set_bits(u64 mask) -> isize
auto zpl_system_command(const char* command, usize buffer_len, char* buffer) -> u32
auto zpl_system_command_str(const char* command, zpl_allocator backing) -> zpl_string