commit | 64021a8b197d3cbc5fc244ceb1cfd03004dc4f18 | [log] [tgz] |
---|---|---|
author | Carlos Chinchilla <cachinchilla@google.com> | Fri Aug 06 00:18:41 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 02 01:28:49 2021 +0000 |
tree | 5d139f01607f1e30ad9f9a721fe7e124ec67a71c | |
parent | d63bd748ebc9bc0cf7cde78b831f8fb9b18840a6 [diff] |
pw_multisink & pw_ring_buffer: Add Peek APIs pw_multisink: Add PeekEntry, PopEntry, and CommitEntry APIs. pw_ring_buffer: Add PeekFrontPreamble to allow a reader peak the user preamble without the need to copy data. This lets the multisink commit multiple entries, peeking one at a time to check if it should be popped without having to get the entry's data. Change-Id: I2304af3d149c10942e61f2ca65400acfeda978ca Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/56246 Reviewed-by: Ewout van Bekkum <ewout@google.com> Pigweed-Auto-Submit: Carlos Chinchilla <cachinchilla@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
See our website: http://pigweed.dev