Update pybuffer.i library to use new-style Python buffer C API.
Removed old API altogether as Python 2.7 is now the minimum version supported and it supports the new-style buffer API.
This commit is contained in:
parent
33f3dbb005
commit
4313c2c168
4 changed files with 18 additions and 33 deletions
|
|
@ -1,6 +1,6 @@
|
|||
%module python_pybuf
|
||||
%include<pybuffer.i>
|
||||
%include<cstring.i>
|
||||
%include <pybuffer.i>
|
||||
%include <cstring.i>
|
||||
/*functions for the test case*/
|
||||
%pybuffer_mutable_binary(char *buf1, int len);
|
||||
%pybuffer_mutable_string(char *buf2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue