Subastra
Loading...
Searching...
No Matches
Functions
misc.h File Reference
#include "defs.h"
#include "memory.h"
Include dependency graph for misc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void * read_binary_file (allocator_t allocator, const char *filename, sz *size)
 Read a binary file file of into memory.
 
static char * read_text_file (allocator_t allocator, const char *filename)
 
static u64 hash_combine_u64 (u64 seed, u64 value)
 
static u64 hash_combine_com_u64 (u64 a, u64 b)
 

Function Documentation

◆ hash_combine_com_u64()

static u64 hash_combine_com_u64 ( u64  a,
u64  b 
)
static

◆ hash_combine_u64()

static u64 hash_combine_u64 ( u64  seed,
u64  value 
)
static

◆ read_binary_file()

static void * read_binary_file ( allocator_t  allocator,
const char *  filename,
sz size 
)
static

Read a binary file file of into memory.

Parameters
[out]sizeThe final size of the buffer read

◆ read_text_file()

static char * read_text_file ( allocator_t  allocator,
const char *  filename 
)
static