namespace pv {
namespace data {
-Snapshot::Snapshot(int unit_size) :
+Snapshot::Snapshot(unsigned int unit_size) :
_sample_count(0),
_capacity(0),
_unit_size(unit_size)
return _sample_count;
}
-int Snapshot::unit_size() const
+unsigned int Snapshot::unit_size() const
{
return _unit_size;
}
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.
std::vector<uint8_t> _data;
uint64_t _sample_count;
uint64_t _capacity;
- int _unit_size;
+ unsigned int _unit_size;
};
} // namespace data