Mercurial > hg > dmlib
diff src/dmres.h @ 2437:f7d54ac51880
Fix and improvements to dmres MemIO subsystem.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 25 Feb 2020 07:26:40 +0200 |
parents | 5ffc48a0bebe |
children | fa089a430121 |
line wrap: on
line diff
--- a/src/dmres.h Mon Feb 24 16:12:16 2020 +0200 +++ b/src/dmres.h Tue Feb 25 07:26:40 2020 +0200 @@ -65,9 +65,12 @@ char *filename; // Raw data (or mem data) - size_t rawSize; // Size of data - off_t rawOffset; // Current offset in data - Uint8 *rawData; // Pointer to data + size_t maxSize; // Maximum size (0 = no limit) + size_t memSize; // Size of data + size_t memAlloc; // Amount allocated + size_t minAlloc; // Minimum allocation increase (0 = default) + off_t memOffset; // Current offset in data + Uint8 *memData; // Pointer to data // Decoded resource data void *resData;