[Zucchini] Introduce buffer_source and buffer_sink

Desktop / Chromium - Etienne Pierre-Doray [chromium.org] - 12 July 2017 22:54 EDT

Cursors with convenient read and write methods to ease manipulation of raw data.

Bug: 729154 Change-Id: I8a7303964b02b9df7ef033de8756b09716a91eae Reviewed-on: https://chromium-review.googlesource.com/560657 Commit-Queue: Etienne Pierre-Doray

9d704fa [Zucchini] Introduce buffer_source and buffer_sink.
chrome/installer/zucchini/BUILD.gn | 6 +
chrome/installer/zucchini/buffer_sink.cc | 11 ++
chrome/installer/zucchini/buffer_sink.h | 69 +++++++++
chrome/installer/zucchini/buffer_sink_unittest.cc | 71 +++++++++
chrome/installer/zucchini/buffer_source.cc | 41 +++++
chrome/installer/zucchini/buffer_source.h | 125 +++++++++++++++
.../installer/zucchini/buffer_source_unittest.cc | 170 +++++++++++++++++++++
chrome/installer/zucchini/buffer_view.h | 14 +-
8 files changed, 503 insertions(+), 4 deletions(-)

Upstream: git.chromium.org


  • Share