Commit d17d4e96 authored by gabrieldemarmiesse's avatar gabrieldemarmiesse

Put a dummy processing in the function rather than asking the user for decision.

parent 9e55199c
def process_byte_data(unsigned char[:] data, bint return_all):
# ... process the data
def process_byte_data(unsigned char[:] data):
# ... process the data, here, dummy processing.
cdef bint return_all = (data[0] == 108)
if return_all:
return bytes(data)
else:
# example for returning a slice
return bytes(data[5:35])
return bytes(data[5:7])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment