diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/abstract.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/abstract.h b/Include/abstract.h index 8ebc3cd..a710509 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -468,6 +468,15 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ */ + DL_IMPORT(int) PyObject_CheckReadBuffer(PyObject *obj); + + /* + Checks whether an arbitrary object supports the (character, + single segment) buffer interface. Returns 1 on success, 0 + on failure. + + */ + DL_IMPORT(int) PyObject_AsReadBuffer(PyObject *obj, const void **buffer, int *buffer_len); |