Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

corrade.containers.MutableBitArrayView class

Mutable bit array view

Equivalent to BitArrayView, but implementing __setitem__() as well.

Special methods

def __getitem__(self, i: int) -> bool
Bit at given position
def __getitem__(self, slice: slice) -> object
Slice the view
def __init__(self, /) -> None
Default constructor
def __init__(self, array: BitArray) -> None
Construct a view on a bit array
def __len__(self, /) -> int
Size in bits
def __setitem__(self, i: int, value: bool) -> None
Set a bit at given position

Properties

offset: int get
Bit offset
owner: object get
Memory owner object