#include <strings.h>#include <stdio.h>#include <stdarg.h>#include <time.h>#include <errno.h>#include <dirent.h>#include <sys/stat.h>#include <sys/time.h>#include <unistd.h>#include <dlfcn.h>#include <stddef.h>#include <stdint.h>

Go to the source code of this file.
Classes | |
| struct | dr_file_iterator |
Macros | |
| #define | DR_FALSE 0 |
| #define | DR_LCG_A 48271 |
| #define | DR_LCG_C 0 |
| #define | DR_LCG_M 2147483647 |
| #define | DR_SIZE_MAX 0xFFFFFFFF |
| #define | DR_TRUE 1 |
| #define | MA_HAS_STDINT |
Typedefs | |
| typedef dr_uint32 | dr_bool32 |
| typedef dr_uint8 | dr_bool8 |
| typedef void * | dr_handle |
| typedef int16_t | dr_int16 |
| typedef int32_t | dr_int32 |
| typedef int64_t | dr_int64 |
| typedef int8_t | dr_int8 |
| typedef void(* | dr_proc) (void) |
| typedef void * | dr_ptr |
| typedef uint16_t | dr_uint16 |
| typedef uint32_t | dr_uint32 |
| typedef uint64_t | dr_uint64 |
| typedef uint8_t | dr_uint8 |
| typedef uintptr_t | dr_uintptr |
Functions | |
| int | dr_append_path (char *dst, size_t dstSize, const char *base, const char *other) |
| dr_bool32 | dr_argv_is_set (int argc, char **argv, const char *value) |
| void | dr_dlclose (dr_handle handle) |
| dr_handle | dr_dlopen (const char *filename) |
| dr_proc | dr_dlsym (dr_handle handle, const char *symbol) |
| const char * | dr_extension (const char *path) |
| dr_bool32 | dr_extension_equal (const char *path, const char *extension) |
| dr_file_iterator * | dr_file_iterator_begin (const char *pFolderPath, dr_file_iterator *pState) |
| void | dr_file_iterator_end (dr_file_iterator *pState) |
| dr_file_iterator * | dr_file_iterator_next (dr_file_iterator *pState) |
| static int | dr_fopen (FILE **ppFile, const char *pFilePath, const char *pOpenMode) |
| void * | dr_open_and_read_file (const char *pFilePath, size_t *pFileSizeOut) |
| void * | dr_open_and_read_file_with_extra_data (const char *pFilePath, size_t *pFileSizeOut, size_t extraBytes) |
| const char * | dr_path_file_name (const char *path) |
| void | dr_pcm_s32_to_f32 (void *dst, const void *src, dr_uint64 count) |
| void | dr_pcm_s32_to_s16 (void *dst, const void *src, dr_uint64 count) |
| int | dr_printf_fixed (int width, const char *const format,...) |
| int | dr_printf_fixed_with_margin (int width, int margin, const char *const format,...) |
| float | dr_rand_f32 () |
| double | dr_rand_f64 () |
| float | dr_rand_range_f32 (float lo, float hi) |
| int | dr_rand_range_s32 (int lo, int hi) |
| dr_uint64 | dr_rand_range_u64 (dr_uint64 lo, dr_uint64 hi) |
| int | dr_rand_s32 () |
| unsigned int | dr_rand_u32 () |
| dr_uint64 | dr_rand_u64 () |
| float | dr_scale_to_range_f32 (float x, float lo, float hi) |
| void | dr_seed (int seed) |
| int | dr_strcat_s (char *dst, size_t dstSizeInBytes, const char *src) |
| int | dr_strcpy_s (char *dst, size_t dstSizeInBytes, const char *src) |
| int | dr_strncat_s (char *dst, size_t dstSizeInBytes, const char *src, size_t count) |
| int | dr_strncpy_s (char *dst, size_t dstSizeInBytes, const char *src, size_t count) |
| double | dr_timer_now () |
| int | dr_vprintf_fixed (int width, const char *const format, va_list args) |
| int | dr_vprintf_fixed_with_margin (int width, int margin, const char *const format, va_list args) |
Variables | |
| static int | g_drLCG |
| #define DR_FALSE 0 |
Definition at line 81 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| #define DR_LCG_A 48271 |
Definition at line 818 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| #define DR_LCG_C 0 |
Definition at line 819 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| #define DR_LCG_M 2147483647 |
Definition at line 817 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| #define DR_SIZE_MAX 0xFFFFFFFF |
Definition at line 90 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| #define DR_TRUE 1 |
Definition at line 80 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| #define MA_HAS_STDINT |
Definition at line 46 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
Definition at line 79 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
Definition at line 78 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef void* dr_handle |
Definition at line 83 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef int16_t dr_int16 |
Definition at line 50 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef int32_t dr_int32 |
Definition at line 52 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef int64_t dr_int64 |
Definition at line 54 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef int8_t dr_int8 |
Definition at line 48 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef void(* dr_proc) (void) |
Definition at line 85 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef void* dr_ptr |
Definition at line 84 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef uint16_t dr_uint16 |
Definition at line 51 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef uint32_t dr_uint32 |
Definition at line 53 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef uint64_t dr_uint64 |
Definition at line 55 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef uint8_t dr_uint8 |
Definition at line 49 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| typedef uintptr_t dr_uintptr |
Definition at line 59 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_append_path | ( | char * | dst, |
| size_t | dstSize, | ||
| const char * | base, | ||
| const char * | other | ||
| ) |
Definition at line 254 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| dr_bool32 dr_argv_is_set | ( | int | argc, |
| char ** | argv, | ||
| const char * | value | ||
| ) |
Definition at line 681 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| void dr_dlclose | ( | dr_handle | handle | ) |
Definition at line 930 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| dr_handle dr_dlopen | ( | const char * | filename | ) |
Definition at line 917 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
Definition at line 939 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| const char* dr_extension | ( | const char * | path | ) |
Definition at line 321 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| dr_bool32 dr_extension_equal | ( | const char * | path, |
| const char * | extension | ||
| ) |
Definition at line 343 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| dr_file_iterator* dr_file_iterator_begin | ( | const char * | pFolderPath, |
| dr_file_iterator * | pState | ||
| ) |
Definition at line 391 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| void dr_file_iterator_end | ( | dr_file_iterator * | pState | ) |
Definition at line 563 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| dr_file_iterator* dr_file_iterator_next | ( | dr_file_iterator * | pState | ) |
Definition at line 495 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
|
static |
Definition at line 584 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| void* dr_open_and_read_file | ( | const char * | pFilePath, |
| size_t * | pFileSizeOut | ||
| ) |
Definition at line 675 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| void* dr_open_and_read_file_with_extra_data | ( | const char * | pFilePath, |
| size_t * | pFileSizeOut, | ||
| size_t | extraBytes | ||
| ) |
Definition at line 621 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| const char* dr_path_file_name | ( | const char * | path | ) |
Definition at line 296 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| void dr_pcm_s32_to_f32 | ( | void * | dst, |
| const void * | src, | ||
| dr_uint64 | count | ||
| ) |
Definition at line 880 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| void dr_pcm_s32_to_s16 | ( | void * | dst, |
| const void * | src, | ||
| dr_uint64 | count | ||
| ) |
Definition at line 901 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_printf_fixed | ( | int | width, |
| const char *const | format, | ||
| ... | |||
| ) |
Definition at line 729 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_printf_fixed_with_margin | ( | int | width, |
| int | margin, | ||
| const char *const | format, | ||
| ... | |||
| ) |
Definition at line 755 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| float dr_rand_f32 | ( | ) |
Definition at line 850 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| double dr_rand_f64 | ( | ) |
Definition at line 845 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| float dr_rand_range_f32 | ( | float | lo, |
| float | hi | ||
| ) |
Definition at line 855 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_rand_range_s32 | ( | int | lo, |
| int | hi | ||
| ) |
Definition at line 860 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
Definition at line 869 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_rand_s32 | ( | ) |
Definition at line 827 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| unsigned int dr_rand_u32 | ( | ) |
Definition at line 835 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| dr_uint64 dr_rand_u64 | ( | ) |
Definition at line 840 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| float dr_scale_to_range_f32 | ( | float | x, |
| float | lo, | ||
| float | hi | ||
| ) |
Definition at line 811 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| void dr_seed | ( | int | seed | ) |
Definition at line 822 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_strcat_s | ( | char * | dst, |
| size_t | dstSizeInBytes, | ||
| const char * | src | ||
| ) |
Definition at line 163 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_strcpy_s | ( | char * | dst, |
| size_t | dstSizeInBytes, | ||
| const char * | src | ||
| ) |
Definition at line 101 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_strncat_s | ( | char * | dst, |
| size_t | dstSizeInBytes, | ||
| const char * | src, | ||
| size_t | count | ||
| ) |
Definition at line 205 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_strncpy_s | ( | char * | dst, |
| size_t | dstSizeInBytes, | ||
| const char * | src, | ||
| size_t | count | ||
| ) |
Definition at line 129 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| double dr_timer_now | ( | ) |
Definition at line 800 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_vprintf_fixed | ( | int | width, |
| const char *const | format, | ||
| va_list | args | ||
| ) |
Definition at line 694 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
| int dr_vprintf_fixed_with_margin | ( | int | width, |
| int | margin, | ||
| const char *const | format, | ||
| va_list | args | ||
| ) |
Definition at line 743 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.
|
static |
Definition at line 820 of file rhino/demo/c/dr_libs/tests/common/dr_common.c.