From: Soeren Apel Date: Mon, 1 May 2017 13:04:10 +0000 (+0200) Subject: Segment: Rework append_samples() so it can handle large input X-Git-Tag: pulseview-0.4.0~91 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=257211b829052bb5d5fade89f518df47d96923b5;hp=257211b829052bb5d5fade89f518df47d96923b5 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. ---