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) -> zpl_u32
auto zpl_random_gen_u32_unique(zpl_random* r) -> zpl_u32
auto zpl_random_gen_u64(zpl_random* r) -> zpl_u64
auto zpl_random_gen_isize(zpl_random* r) -> zpl_isize
auto zpl_random_range_i64(zpl_random* r, zpl_i64 lower_inc, zpl_i64 higher_inc) -> zpl_i64
auto zpl_random_range_isize(zpl_random* r, zpl_isize lower_inc, zpl_isize higher_inc) -> zpl_isize
auto zpl_random_range_f64(zpl_random* r, zpl_f64 lower_inc, zpl_f64 higher_inc) -> zpl_f64
auto zpl_exit(zpl_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(zpl_u16 i) -> zpl_u16
auto zpl_endian_swap32(zpl_u32 i) -> zpl_u32
auto zpl_endian_swap64(zpl_u64 i) -> zpl_u64
auto zpl_count_set_bits(zpl_u64 mask) -> zpl_isize
auto zpl_system_command(const char* command, zpl_usize buffer_len, char* buffer) -> zpl_u32
auto zpl_system_command_str(const char* command, zpl_allocator backing) -> zpl_string