7 typedef struct MemGrow
{
13 void mem_init(MG
* mem
);
14 void mem_free(MG
* mem
);
15 int mem_grow_if_needed(MG
*mem
, size_t newsize
);
16 int mem_write(MG
*mem
, size_t offset
, void* data
, size_t size
);
17 int mem_append(MG
*mem
, void* data
, size_t size
);
18 void* mem_getptr(MG
* mem
, size_t offset
, size_t byteswanted
);
19 void mem_set(MG
* mem
, void* data
, size_t used
, size_t allocated
);
20 int mem_write_file(MG
* mem
, char* fn
);
21 int mem_write_stream(MG
* mem
, FILE* out
);
23 #pragma RcB2 DEP "MemGrow.c"