0.44.0
|
#include <iaRLE.h>
Public Member Functions | |
iaRLE (TIndex size) | |
iaRLE ()=default | |
void | setSize (TIndex size, TValue clearValue=0) |
TIndex | getSize () const |
void | clear (TValue clearValue=0) |
void | setValue (TIndex index, TValue value) |
void | setValue (TIndex index, TIndex length, TValue value) |
TValue | getValue (TIndex index) const |
iaRLE< TValue, TIndex > | operator= (const iaRLE< TValue, TIndex > &data) |
run length encoded buffer
iaRLE::iaRLE | ( | TIndex | size | ) |
init members
size | the size of this buffer |
|
default |
init members
void iaRLE::clear | ( | TValue | clearValue = 0 | ) |
resets the memory to 0
TIndex iaRLE::getSize | ( | ) | const |
TValue iaRLE::getValue | ( | TIndex | index | ) | const |
index | index position of value to return |
iaRLE< TValue, TIndex > iaRLE::operator= | ( | const iaRLE< TValue, TIndex > & | data | ) |
makes copy of RLE data
data | the source data |
void iaRLE::setSize | ( | TIndex | size, |
TValue | clearValue = 0 |
||
) |
sets size of rle buffer
size | the size of this buffer |
clearValue | optional clear value |
void iaRLE::setValue | ( | TIndex | index, |
TIndex | length, | ||
TValue | value | ||
) |
sets value in a range of indexes
index | index to start from |
length | amount of values to set |
value | the value to set |
void iaRLE::setValue | ( | TIndex | index, |
TValue | value | ||
) |
sets value at given index
index | index position in buffer |
value | the value to set |