mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-13 12:29:41 -07:00
expose file API to enable IO detouring
This commit is contained in:
1 parent
04c1488cd4
commit
f7d7f6633f
3 files changed
+127
-21
No files matched your search
@@ -12,6 +12,16 @@ typedef struct
|
||||
U8 *buffer;
|
||||
} LNK_DiskReader;
|
||||
|
||||
////////////////////////////////
|
||||
// Shared File API
|
||||
|
||||
shared_function int lnk_open_file_read(char *path, uint64_t path_size, void *handle_buffer, uint64_t handle_buffer_max);
|
||||
shared_function int lnk_open_file_write(char *path, uint64_t path_size, void *handle_buffer, uint64_t handle_buffer_max);
|
||||
shared_function void lnk_close_file(void *raw_handle);
|
||||
shared_function uint64_t lnk_size_from_file(void *raw_handle);
|
||||
shared_function uint64_t lnk_read_file(void *raw_handle, void *buffer, uint64_t buffer_max);
|
||||
shared_function uint64_t lnk_write_file(void *raw_handle, uint64_t offset, void *buffer, uint64_t buffer_size);
|
||||
|
||||
////////////////////////////////
|
||||
|
||||
internal String8 lnk_read_data_from_file_path(Arena *arena, String8 path);
|
||||
|
||||
Reference in new issue
Block a user