• I also tried to change my C-function signature to

    int find_sequence(unsigned char* buffer, unsigned char* sequence, int sequence_length, int* params) {}
    

    And pass in an Int32Array. This does not work either. What I noticed is, that whenever I'm returning any of the values from params, I get a static value, which stays the same - so something more like a fixed memory address. But I read that accessing a value by ptr[X] automatically dereferences it and lets me access the value as *(ptr + 0) would do.

About

Avatar for llakie @llakie started