diff options
author | Chirantan Ekbote <chirantan@chromium.org> | 2020-04-30 19:18:26 +0900 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-01 09:43:10 +0000 |
commit | 9fec3733afbdb5452b3502aa5502c82c15e5ebe3 (patch) | |
tree | f4a54c717bae3bdcd37d7949fe02131706db6fe6 /assertions | |
parent | da0e0f939b731d89d067fb9382bbdc05e47f4067 (diff) | |
download | crosvm-9fec3733afbdb5452b3502aa5502c82c15e5ebe3.tar crosvm-9fec3733afbdb5452b3502aa5502c82c15e5ebe3.tar.gz crosvm-9fec3733afbdb5452b3502aa5502c82c15e5ebe3.tar.bz2 crosvm-9fec3733afbdb5452b3502aa5502c82c15e5ebe3.tar.lz crosvm-9fec3733afbdb5452b3502aa5502c82c15e5ebe3.tar.xz crosvm-9fec3733afbdb5452b3502aa5502c82c15e5ebe3.tar.zst crosvm-9fec3733afbdb5452b3502aa5502c82c15e5ebe3.zip |
descriptor_utils: Add write_iter method
Add a method to write a series of objects produced by an iterator. Unlike the current `consume` method, this doesn't require the caller to first store the objects in an intermediate collection. Also change `consume` to be implemented using `write_iter`. This is the Writer equivalent of the `iter` and `collect` methods of the Reader struct. BUG=none TEST=unit tests Change-Id: I36bf2fef4d40e13a4741fa55fc35dd556c13a53b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2172841 Commit-Queue: Chirantan Ekbote <chirantan@chromium.org> Commit-Queue: Dylan Reid <dgreid@chromium.org> Auto-Submit: Chirantan Ekbote <chirantan@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Stephen Barber <smbarber@chromium.org>
Diffstat (limited to 'assertions')
0 files changed, 0 insertions, 0 deletions