summaryrefslogtreecommitdiff
path: root/libsparse/sparse_read.cpp
AgeCommit message (Collapse)Author
2018-08-31Merge QP1A.180823.001Bill Peckham
Change-Id: I43a054f155f100b3d7f414e17d3af9b900a05ab5
2018-06-13libsparse: Add .clang-format and reformat to google3 styleJerry Zhang
Bug: 78793464 Test: compiles Change-Id: I8e44ba77195a12fc2bac7d4276bbc4aa95149b31
2018-06-07libsparse: Add method to create sparse file from bufferJerry Zhang
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
2017-10-17Merge "<stdbool.h> not necessary in C++."Treehugger Robot
2017-10-17<stdbool.h> not necessary in C++.Elliott Hughes
Bug: N/A Test: builds Change-Id: I1f32b202e353414e74ace87a7d5b495b5deb5f99 Merged-In: I1f32b202e353414e74ace87a7d5b495b5deb5f99
2017-10-11libsparse: fix building on linux host.Xiaolei Yu
memset is declared in <string.h> Test: builds and works on host Change-Id: I224a01c78ee1d0c2f8d5e86eef10c84c8960cbc0
2017-04-18libsparse: Fix verbose_error string usageChris Fries
Switch vnsprintf to StringPrintf to avoid off-by-one, and switch sparse_read.c to cpp. Test: fastboot flash normal image with smaller sparse limit Change-Id: Ia399b167625deb271bfd0ee3273071306d71c4d4