Skip to content
Snippets Groups Projects
Commit 9f1bd500 authored by Tim Schoof's avatar Tim Schoof
Browse files

Use Python function to remove limit on size

parent f2b6fb01
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ cdef void* data_pointer(data) except? NULL:
cdef const unsigned char[::1] memview = reshaped_view
return <void*>&memview[0]
cdef int data_nbytes(data) except -1:
def data_nbytes(data):
if data is None:
return 0
return memoryview(data).nbytes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment