Kore 3
Loading...
Searching...
No Matches
filewriter.h
Go to the documentation of this file.
1#ifndef KORE_IO_FILEWRITER_HEADER
2#define KORE_IO_FILEWRITER_HEADER
3
4#include <kore3/global.h>
5
6#include <stdbool.h>
7
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17typedef struct kore_file_writer {
18 void *file;
19 const char *filename;
20 bool mounted;
22
29KORE_FUNC bool kore_file_writer_open(kore_file_writer *writer, const char *filepath);
30
37KORE_FUNC void kore_file_writer_write(kore_file_writer *writer, void *data, int size);
38
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif
KORE_FUNC void kore_file_writer_write(kore_file_writer *writer, void *data, int size)
Writes data to a file starting from the current writing-position and increases the writing-position a...
KORE_FUNC bool kore_file_writer_open(kore_file_writer *writer, const char *filepath)
Opens a file for writing.
KORE_FUNC void kore_file_writer_close(kore_file_writer *writer)
Closes a file.
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Definition filewriter.h:17