Loading...
Searching...
No Matches
saved_struct.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <stdint.h>
9#include <stdbool.h>
10#include <stddef.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
26bool saved_struct_load(const char* path, void* data, size_t size, uint8_t magic, uint8_t version);
27
39 const char* path,
40 const void* data,
41 size_t size,
42 uint8_t magic,
43 uint8_t version);
44
57 const char* path,
58 uint8_t* magic,
59 uint8_t* version,
60 size_t* payload_size);
61
62#ifdef __cplusplus
63}
64#endif
bool saved_struct_load(const char *path, void *data, size_t size, uint8_t magic, uint8_t version)
Load data from the file in saved structure format.
Definition saved_struct.c:70
bool saved_struct_save(const char *path, const void *data, size_t size, uint8_t magic, uint8_t version)
Save data in saved structure format.
Definition saved_struct.c:16
bool saved_struct_get_metadata(const char *path, uint8_t *magic, uint8_t *version, size_t *payload_size)
Get SavedStructure file metadata.
Definition saved_struct.c:138