mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Cleanup (the Fluxmap doesn't store intervals any more, just byte opcode
things).
This commit is contained in:
@@ -7,21 +7,21 @@ public:
|
||||
uint32_t getAndIncrement(size_t& index) const;
|
||||
|
||||
nanoseconds_t duration() const { return _duration; }
|
||||
size_t bytes() const { return _intervals.size(); }
|
||||
size_t bytes() const { return _bytes.size(); }
|
||||
|
||||
const uint8_t* ptr() const
|
||||
{
|
||||
if (!_intervals.empty())
|
||||
return &_intervals.at(0);
|
||||
if (!_bytes.empty())
|
||||
return &_bytes.at(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Fluxmap& appendIntervals(const std::vector<uint8_t>& intervals);
|
||||
Fluxmap& appendIntervals(const uint8_t* ptr, size_t len);
|
||||
Fluxmap& appendBytes(const std::vector<uint8_t>& bytes);
|
||||
Fluxmap& appendBytes(const uint8_t* ptr, size_t len);
|
||||
|
||||
Fluxmap& appendInterval(uint8_t interval)
|
||||
Fluxmap& appendByte(uint8_t byte)
|
||||
{
|
||||
return appendIntervals(&interval, 1);
|
||||
return appendBytes(&byte, 1);
|
||||
}
|
||||
|
||||
nanoseconds_t guessClock() const;
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
private:
|
||||
nanoseconds_t _duration = 0;
|
||||
int _ticks = 0;
|
||||
std::vector<uint8_t> _intervals;
|
||||
std::vector<uint8_t> _bytes;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user