diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2021-02-03 15:33:08 -0500 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2021-02-26 18:17:50 +0000 |
commit | 9b8a2bb050ff2a6beda02b9896f085798dca2d2a (patch) | |
tree | 3a234061db4ccab3dcc43d7a5ff61149af436ac3 /scripts/update_device.py | |
parent | 51e08b90a7192ac1a9a994060ff564b49adbe694 (diff) |
Allow payload_metadata to take raw pointers with size
This way, callers of payload_metadata don't have to store their data in
std::vector. This makes parsing a `mmap()`ed payload file possible.
While we don't need the ability to parse an mmap()ed payload on device,
it is really handy for parsing payload from host-side tooling. In which
case the entire payload will be available on disk anyway, and a
streaming parse will complicate code a lot.
Test: treehugger
Change-Id: Icfbd8e849093c8f389ea802864680ab214bdd721
Diffstat (limited to 'scripts/update_device.py')
0 files changed, 0 insertions, 0 deletions