commit | 011a4d5d446255e97bd2d988d21bdbc14b1b56e1 | [log] [tgz] |
---|---|---|
author | Ewout van Bekkum <ewout@google.com> | Fri Aug 20 20:19:52 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 25 16:40:56 2021 +0000 |
tree | 3ff2867954235c84de44222d3af8ec8fb65025c3 | |
parent | f1672fbfda39e5fd658296baa489544ddfddbe5e [diff] |
pw_protobuf/encoder: Deprecate the Finalize() API Deprecates the Finalize() encoder API, instead requiring explicit nested encoders to be closed via RAII (i.e. destruction) before the parent encoders are closed. This simplifies the API as it was unclear before when Finalize() should be correctly used. Note that this also adds a precondition to status() that there are no open nested encoders. Change-Id: I2c872b45cb4ecd476e12ba5a1c145bfe3ce91a4d Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/57922 Reviewed-by: Alexei Frolov <frolv@google.com> Reviewed-by: Armando Montanez <amontanez@google.com> Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
See our website: http://pigweed.dev