8 : durations(durations_), length(length_), toBeFreed(toBeFreed_) {
25 return new IrSequence(durationsClone, length,
true);
29 for (
unsigned int i = 0U; i < length; i++) {
33 stream.print((i & 1) ?
'-' :
'+');
34 stream.print(durations[i], DEC);
42 memcpy_PF(data, (uint_farptr_t) flashData,
sizeof(
microseconds_t) * length);
uint16_t microseconds_t
Type for durations in micro seconds.
IrSequence * clone() const
Creates a (deep) clone of the current object.
static IrSequence * readFlash(const microseconds_t *flashData, size_t length)
void dump(Stream &stream, bool usingSigns=false) const
Prints the IrSequence on the stream provided.
This class consists of a vector of durations.
IrSequence()
Create an empty sequence.