commit | 8f36d1e8521ff4e29e0fc1b27ae4405fee43d393 | [log] [tgz] |
---|---|---|
author | Jerry Zhang <zhangjerry@google.com> | Tue Jun 05 11:44:52 2018 -0700 |
committer | Jerry Zhang <zhangjerry@google.com> | Thu Jun 07 14:33:18 2018 -0700 |
tree | 16b6c5529b11af841a6ebbdbe4b8e9d362946526 | |
parent | d37e81767fce7ac8f4a9f3e6d414baeec3d77bc7 [diff] |
libsparse: Add method to create sparse file from buffer 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