From 7c2cda2544f22add8114828535a397a2d733361d Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 16 Mar 2019 00:58:05 +0100 Subject: Add openMemory method with an example --- src/cc4group.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cc4group.h') diff --git a/src/cc4group.h b/src/cc4group.h index 9c5625b..16c684a 100644 --- a/src/cc4group.h +++ b/src/cc4group.h @@ -36,9 +36,14 @@ typedef struct { bool (*create)(CC4Group* const this); void (*delete)(CC4Group* const this); + // opens a group on the filesystem; path may point to a directory inside a group // only open an existing group on a frehsly created group object bool (*openExisting)(CC4Group* const this, const char* const path); + // opens a group that is stored entirely in memory + // only open an in-memory group on a frehsly created group object + bool (*openMemory)(CC4Group* const this, const uint8_t* const groupData, size_t const size); + bool (*save)(CC4Group* const this, const char* const path); bool (*saveOverwrite)(CC4Group* const this, const char* const path); -- cgit v1.2.3-54-g00ecf