Moved memorymapping files into a separate function
This commit is contained in:
@ -1,9 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define UTILS_COUNT(arr) (sizeof(arr) / sizeof(*arr))
|
||||
|
||||
struct file_mapping {
|
||||
HANDLE file;
|
||||
HANDLE mapping;
|
||||
unsigned char *data;
|
||||
};
|
||||
|
||||
void utils_map_file(const wchar_t *path, struct file_mapping *map);
|
||||
void utils_unmap_file(struct file_mapping *map);
|
||||
|
||||
int utils_path_exists(const wchar_t *filePath);
|
||||
uint32_t utils_file_crc32c(const wchar_t *filePath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user