Commit 3e0bfb6
committed
Add count_valid method to ring buffer
The current len magic returns the count of samples in the ring buffer
that are determined valid. This definition is not unambiguously obvious
to the caller. The current logic is therefore moved to its own more
descriptive method which in the first step is called by the len magic.
This prepares removal of the len magic in subsequent changes.
Signed-off-by: cwasicki <[email protected]>1 parent 910bd9c commit 3e0bfb6
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
598 | | - | |
| 597 | + | |
| 598 | + | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
| 601 | + | |
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
0 commit comments