-
- Downloads
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
Showing
- libsparse/include/sparse/sparse.h 31 additions, 0 deletionslibsparse/include/sparse/sparse.h
- libsparse/output_file.cpp 178 additions, 86 deletionslibsparse/output_file.cpp
- libsparse/output_file.h 7 additions, 3 deletionslibsparse/output_file.h
- libsparse/sparse.cpp 30 additions, 7 deletionslibsparse/sparse.cpp
Loading
Please register or sign in to comment