]> sigrok.org Git - pulseview.git/commitdiff
Added Snapshot::unit_size
authorJoel Holdsworth <redacted>
Mon, 26 Aug 2013 22:28:36 +0000 (23:28 +0100)
committerJoel Holdsworth <redacted>
Sun, 29 Sep 2013 01:52:29 +0000 (10:52 +0900)
pv/data/snapshot.cpp
pv/data/snapshot.h

index 8571dc6623be52b5b4918a2c00c79b52a1b74f6d..602388412f00624cc6db0cfbce81fff684b1223f 100644 (file)
@@ -50,6 +50,11 @@ uint64_t Snapshot::get_sample_count() const
        return _sample_count;
 }
 
+int Snapshot::unit_size() const
+{
+       return _unit_size;
+}
+
 void Snapshot::append_data(void *data, uint64_t samples)
 {
        lock_guard<recursive_mutex> lock(_mutex);
index 5fb79198eb2b6efe64f0e3cd1f0995d4d8ca14cf..1758d4cddaa7720f35a02449d344b311274cfcc1 100644 (file)
@@ -37,6 +37,8 @@ public:
 
        uint64_t get_sample_count() const;
 
+       int unit_size() const;
+
 protected:
        void append_data(void *data, uint64_t samples);