Refactor elements of sparse file parsing that depend on an fd into SparseFileSource class, then create implementations using both fd and buffer. Add sparse_file_read_buf which reads the given buffer into a sparse file cookie without copying. Test: flash system with sparse images Bug: 78793464 Change-Id: Ice6c8e1ff075d6867e070f80fcf5aa4f530a1b95 |
||
|---|---|---|
| .. | ||
| include/sparse | ||
| Android.bp | ||
| Android.mk | ||
| append2simg.c | ||
| backed_block.c | ||
| backed_block.h | ||
| defs.h | ||
| img2simg.c | ||
| output_file.c | ||
| output_file.h | ||
| simg2img.c | ||
| simg2simg.c | ||
| simg_dump.py | ||
| sparse.c | ||
| sparse_crc32.c | ||
| sparse_crc32.h | ||
| sparse_defs.h | ||
| sparse_err.c | ||
| sparse_file.h | ||
| sparse_format.h | ||
| sparse_read.cpp | ||