]> sigrok.org Git - pulseview.git/blobdiff - pv/data/snapshot.h
Snapshot classes: Use vector instead of raw pointer
[pulseview.git] / pv / data / snapshot.h
index 499164400014d20001ae1e130c177bfcefe990be..e4b9c0e812aaf7a7e0b3722d26a352997d02180b 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <thread>
 #include <mutex>
+#include <vector>
 
 namespace pv {
 namespace data {
@@ -72,7 +73,7 @@ protected:
 
 protected:
        mutable std::recursive_mutex _mutex;
-       void *_data;
+       std::vector<uint8_t> _data;
        uint64_t _sample_count;
        uint64_t _capacity;
        int _unit_size;