Skip to content Skip to sidebar Skip to footer
Showing posts with the label Memoryview

Python: Writing To Memory In A Single Operation

I'm writing a userspace driver for accessing FPGA registers in Python 3.5 that mmaps the FPGA&#… Read more Python: Writing To Memory In A Single Operation

Buffers And Memoryview Objects Explained For The Non-c Programmer

Python 2.7 has introduced a new API for buffers and memoryview objects. I read the documentation on… Read more Buffers And Memoryview Objects Explained For The Non-c Programmer

Initialise Cython Memoryview Efficiently

I'm currently setting my MemoryViews in my Cython pyx file as follows: @cython.boundscheck(Fals… Read more Initialise Cython Memoryview Efficiently

Reading A Binary File With Memoryview

I read a large file in the code below which has a special structure - among others two blocks that … Read more Reading A Binary File With Memoryview

Passing/Returning Cython Memoryviews Vs NumPy Arrays

I am writing Python code to accelerate a region properties function for labeled objects in a binary… Read more Passing/Returning Cython Memoryviews Vs NumPy Arrays