cbytesparse.c.BlockView

class cbytesparse.c.BlockView

Block viewer.

Memory view around an underlying block slice, implementing Python’s buffer protocol API.

Methods

__init__

check

Checks for data consistency.

release

Forces object disposal.

Attributes

acquired

Underlying block currently acquired.

endex

Slice exclusive end address.

endin

Slice inclusive end address.

memview

Python memoryview wrapper.

start

Slice inclusive start address.

__bool__()

self != 0

__bytes__()

Converts into bytes.

Returns

bytesbytes 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