commit | 714f42a5e69e0fa3f88190f69cf6364ce1d266a3 | [log] [tgz] |
---|---|---|
author | Alexei Frolov <frolv@google.com> | Wed Jan 31 19:33:54 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 31 19:33:54 2024 +0000 |
tree | 757fdf2ebfb6ed0d94cb0b55585ef22ea71ab211 | |
parent | 58010f768811359dcfd1778cce57655d5274710f [diff] |
pw_transfer: Allow setting a transfer resource size in C++ This adds interfaces to both the server-side `TransferHandler` and client-side `TransferHandle` in the C++ transfer code which allow users to specify the total size of their transfer resource. When set, the size will be reported through the transfer protocol using the `remaining_size` field in transmitted chunks. Bug: 319731837 Change-Id: Icd0ae7d2547e7cb305e69d1e184485166dda2512 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/189095 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Alexei Frolov <frolv@google.com> Reviewed-by: Jordan Brauer <jtbrauer@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.