take some steps towards reducing memory footprint in stack buffers

This commit is contained in:
2018-01-13 20:51:09 +01:00
parent d49081b190
commit 7280338f8b
12 changed files with 83 additions and 18 deletions
+2
View File
@@ -32,7 +32,9 @@ static uint32_t read_iw_sector(uint32_t sector_offset, uint8_t *data, uint32_t n
const uint32_t avail = num_sectors*VFS_SECTOR_SIZE;
const uint32_t skip = sector_offset*VFS_SECTOR_SIZE;
IniWriter iw = iw_init((char *)data, skip, avail);
iw_begin();
handler(&iw);
iw_end();
return avail - iw.count;
}