X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fsegment.hpp;h=14122d6a001a8d1e7cd25c61091a3a38f35e3cb6;hb=6644424f1ea61ee7e1f048bfac09acd4a094feab;hp=513b7dbd9412fdc03883e7c4991083551923df60;hpb=26a883ede0bcf68d087eda5dd2082890d36c7aef;p=pulseview.git diff --git a/pv/data/segment.hpp b/pv/data/segment.hpp index 513b7dbd..14122d6a 100644 --- a/pv/data/segment.hpp +++ b/pv/data/segment.hpp @@ -51,7 +51,7 @@ typedef struct { class Segment { private: - static const uint64_t MaxChunkSize = 10*1024*1024; /* 10MiB */ + static const uint64_t MaxChunkSize; public: Segment(uint64_t samplerate, unsigned int unit_size); @@ -67,6 +67,8 @@ public: unsigned int unit_size() const; + void free_unused_memory(); + protected: void append_single_sample(void *data); void append_samples(void *data, uint64_t samples);