summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2018-06-14 16:58:58 -0700
committerHridya Valsaraju <hridya@google.com>2018-07-25 11:04:03 -0700
commitdb69f0d47f3ccb3ff656c56fe2b68aaf5ab853f6 (patch)
treee10ad5680b134599df00f4322a82242690940eb7 /trusty/coverage/coverage_test.cpp
parent1c92fa44800c9d2efd3f2b8f18a3af7e131371be (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