mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Allow split decoders (into sector record and data record).
This commit is contained in:
@@ -2,11 +2,22 @@
|
||||
#define FLUXMAP_H
|
||||
|
||||
#include "bytes.h"
|
||||
#include "protocol.h"
|
||||
|
||||
class RawBits;
|
||||
|
||||
class Fluxmap
|
||||
{
|
||||
public:
|
||||
struct Position
|
||||
{
|
||||
unsigned bytes = 0;
|
||||
unsigned ticks = 0;
|
||||
|
||||
nanoseconds_t ns() const
|
||||
{ return ticks * NS_PER_TICK; }
|
||||
};
|
||||
|
||||
public:
|
||||
nanoseconds_t duration() const { return _duration; }
|
||||
size_t bytes() const { return _bytes.size(); }
|
||||
|
||||
Reference in New Issue
Block a user