]> sigrok.org Git - pulseview.git/commit
Segment: Rework append_samples() so it can handle large input
authorSoeren Apel <redacted>
Mon, 1 May 2017 13:04:10 +0000 (15:04 +0200)
committerUwe Hermann <redacted>
Fri, 5 May 2017 21:41:17 +0000 (23:41 +0200)
commit257211b829052bb5d5fade89f518df47d96923b5
tree8f3515185280f0d00989a2648ccdc92dcfc9c288
parent6c0df7c482e0351f7b0cb0b8cbe0d92f77f08980
Segment: Rework append_samples() so it can handle large input

Before, adding large blocks of samples didn't work if they
would fill the current chunk, fill a new one and still have
data left to add. Using an iterative approach fixes this and
also makes the function more elegant.
pv/data/segment.cpp