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:
William S Fulton 2018-08-12 15:02:28 +01:00
commit 4313c2c168
4 changed files with 18 additions and 33 deletions

View file

@ -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);