X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fsnapshot.h;h=48879991fbbcc7d4af1d197ea68accba72512699;hp=499164400014d20001ae1e130c177bfcefe990be;hb=e8d009288de28cb194bc7964f96677c2baf900c9;hpb=3b68d03ddae96edb38a80f31bf6a990bde21cd1d diff --git a/pv/data/snapshot.h b/pv/data/snapshot.h index 49916440..48879991 100644 --- a/pv/data/snapshot.h +++ b/pv/data/snapshot.h @@ -21,10 +21,9 @@ #ifndef PULSEVIEW_PV_DATA_SNAPSHOT_H #define PULSEVIEW_PV_DATA_SNAPSHOT_H -#include - #include #include +#include namespace pv { namespace data { @@ -32,13 +31,13 @@ namespace data { class Snapshot { public: - Snapshot(int unit_size); + Snapshot(unsigned int unit_size); virtual ~Snapshot(); uint64_t get_sample_count() const; - int unit_size() const; + unsigned int unit_size() const; /** * @brief Increase the capacity of the snapshot. @@ -72,10 +71,10 @@ protected: protected: mutable std::recursive_mutex _mutex; - void *_data; + std::vector _data; uint64_t _sample_count; uint64_t _capacity; - int _unit_size; + unsigned int _unit_size; }; } // namespace data