VMUPro SDK v1.0.0
Application Development SDK for the VMUPro
Loading...
Searching...
No Matches
vmupro_file.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <stdint.h>
18#include <stdbool.h>
19#include <stddef.h>
20
21#ifdef __cplusplus
22extern "C"
23{
24#endif
25
43 bool vmupro_file_exists(const char *filename);
44
64 bool vmupro_folder_exists(const char *path);
65
84 size_t vmupro_get_file_size(const char *filename);
85
115 bool vmupro_read_file_complete(const char *filename, uint8_t *buffer, size_t *file_size);
116
148 bool vmupro_read_file_bytes(const char *filename, uint8_t *buffer, uint32_t offset, int num_bytes);
149
182 bool vmupro_write_file_complete(const char *filename, const uint8_t *data, size_t size);
183
222 bool vmupro_write_file_bytes(const char *filename, const uint8_t *data, uint32_t offset, size_t length);
223
276 unsigned long crc32(int crc, uint8_t *buf, int len);
277
278#ifdef __cplusplus
279}
280#endif
bool vmupro_read_file_bytes(const char *filename, uint8_t *buffer, uint32_t offset, int num_bytes)
Read specific bytes from a file.
bool vmupro_folder_exists(const char *path)
Check if a folder exists.
bool vmupro_read_file_complete(const char *filename, uint8_t *buffer, size_t *file_size)
Read an entire file into memory.
bool vmupro_write_file_complete(const char *filename, const uint8_t *data, size_t size)
Write data to a file completely.
size_t vmupro_get_file_size(const char *filename)
Get the size of a file.
unsigned long crc32(int crc, uint8_t *buf, int len)
Calculate CRC32 checksum.
bool vmupro_write_file_bytes(const char *filename, const uint8_t *data, uint32_t offset, size_t length)
Write data to a file at a specific offset.
bool vmupro_file_exists(const char *filename)
Check if a file exists.