danishprakash / py-splice

A Python interface to splice(2) system call
GNU General Public License v3.0
4 stars 2 forks source link

nbytes and offset should be size_t #2

Open mocksoul opened 1 year ago

mocksoul commented 1 year ago

subj:

https://github.com/danishprakash/py-splice/blob/50bb8dd38b612bf9c5c2fa72db88729b0f8d726e/splicemodule.c#L132

danishprakash commented 1 year ago

Clearly I'm missing something here, would you mind sharing the reason please? Thanks

mocksoul commented 1 year ago

Reason is simple: int is 2^32, thus it does not work for big files at all.