59 operator bool()
const {
return !
isEmpty(); }
86 return durations + length;
98 void dump(Stream& stream,
bool usingSigns =
false)
const;
This file defines some general data types that are used in the library.
uint16_t microseconds_t
Type for durations in micro seconds.
This class consists of a vector of durations.
const microseconds_t * end() const
void dump(Stream &stream, bool usingSigns=false) const
Prints the IrSequence on the stream provided.
void dumpWithSigns(Stream &stream) const
Prints the IrSequence on the stream provided.
microseconds_t operator[](int i) const
static const IrSequence emptyInstance
const microseconds_t * begin() const
const microseconds_t * getDurations() const
static IrSequence * readFlash(const microseconds_t *flashData, size_t length)
Create an IrSequence from data in PROGMEM.
IrSequence()
Create an empty sequence.
size_t getLength() const
Returns the number of durations.
IrSequence & operator=(const IrSequence &rhs)
Copy assignment.