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.MutableArrayView class

Mutable array view

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

Special methods

def __buffer__(self, flags, /)
Return a buffer object that exposes the underlying memory of the object.
def __bytes__(self, /) -> bytes
Convert to bytes
def __getitem__(self, i: int) -> int
Value at given position
def __getitem__(self, slice: slice) -> object
Slice the view
def __init__(self, /) -> None
Default constructor
def __init__(self, arg0: Buffer, /) -> None
Construct from a buffer
def __len__(self, /) -> int
View size
def __release_buffer__(self, buffer, /)
Release the buffer object that exposes the underlying memory of the object.
def __setitem__(self, i: int, value: int) -> None
Set a value at given position

Properties

owner: object get
Memory owner object