m_bitset_set_range
MLIB_API(void) m_bitset_set_range( M_Bitset bitset,
M_UInt start,
M_UInt count,
M_UInt size,
M_UInt value );
|
this function is used to set a range of bit cells
to a single value.
|
input |
bitset |
target bitset handle
|
start |
start bit/cell position
|
count |
number of bits/cells to set
|
size |
size of bit cell (1,2,4 or 8)
|
value |
new bit/cell value
|
|
note |
this function will panic if "size" is not 1, 2, 4
or 8
the value is anded with (1 << size)-1 before
being applied this function sets the bits at
[size*index..size*index+size-1]
|
|