summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2018-06-05 11:44:52 -0700
committerJerry Zhang <zhangjerry@google.com>2018-06-07 14:33:18 -0700
commit50e6029a4e4b9c9bd6065548ced523ec5b01e705 (patch)
tree16b6c5529b11af841a6ebbdbe4b8e9d362946526 /libsparse/sparse.cpp
parentf875aaa339e864410b7243d312d06020f86845f8 (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
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions