cbytesparse.c.BlockView¶
- class cbytesparse.c.BlockView¶
Block viewer.
Memory view around an underlying block slice, implementing Python’s buffer protocol API.
Methods
__init__
Checks for data consistency.
Forces object disposal.
Attributes
Underlying block currently acquired.
Slice exclusive end address.
Slice inclusive end address.
Python
memoryview
wrapper.Slice inclusive start address.
- __bool__()¶
self != 0
- __bytes__()¶
Converts into bytes.
- Returns
bytes –
bytes
clone of the viewed slice.
- __eq__(value, /)¶
Return self==value.
- __ge__(value, /)¶
Return self>=value.
- __getattribute__(name, /)¶
Return getattr(self, name).
- __getitem__(key, /)¶
Return self[key].
- __gt__(value, /)¶
Return self>value.
- __hash__ = None¶
- __le__(value, /)¶
Return self<=value.
- __len__()¶
int: Slice length.
- __lt__(value, /)¶
Return self<value.
- __ne__(value, /)¶
Return self!=value.
- __new__(**kwargs)¶
- __reduce__()¶
BlockView.__reduce_cython__(self)
- __repr__()¶
Return repr(self).
- __setstate__()¶
BlockView.__setstate_cython__(self, __pyx_state)
- __str__()¶
Return str(self).
- acquired¶
Underlying block currently acquired.
- Type
bool
- check()¶
Checks for data consistency.
- endex¶
Slice exclusive end address.
- Type
int
- endin¶
Slice inclusive end address.
- Type
int
- memview¶
Python
memoryview
wrapper.- Type
memoryview
- release()¶
Forces object disposal.
Useful to make sure that any memory blocks are unreferenced before automatic garbage collection.
Any access to the object after calling this function could raise exceptions.
- start¶
Slice inclusive start address.
- Type
int