diff options
| author | Jerry Zhang <zhangjerry@google.com> | 2018-06-14 16:58:58 -0700 |
|---|---|---|
| committer | Hridya Valsaraju <hridya@google.com> | 2018-07-25 11:04:03 -0700 |
| commit | db69f0d47f3ccb3ff656c56fe2b68aaf5ab853f6 (patch) | |
| tree | e10ad5680b134599df00f4322a82242690940eb7 /trusty/coverage/coverage_test.cpp | |
| parent | 1c92fa44800c9d2efd3f2b8f18a3af7e131371be (diff) | |
libsparse: Add sparse typed callback
Currently, sparse_file_callback uses libsparse's
own logic for reading a file into a buffer. However,
a caller may want to use their own logic for doing
this in order to customize the buffer size and parallelize
the reads/writes. Also, a caller may want to implement
fill blocks with their own logic as well. To do this
add sparse_file_typed_callback which calls a different
callback function depending on the type of the sparse
chunk being written.
Test: Use typed callback for fd writes
Bug: 78793464
Change-Id: I75955a464fc05991f806339830fdfa05fda354b9
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
