Liking cljdoc? Tell your friends :D

libpython-clj.jna.protocols.buffer


PyBUF_ANY_CONTIGUOUSclj

source

PyBUF_C_CONTIGUOUSclj

source

PyBUF_CONTIGclj

source

PyBUF_CONTIG_ROclj

source

PyBUF_F_CONTIGUOUSclj

source

PyBUF_FORMATclj

source

PyBUF_FULLclj

source

PyBUF_FULL_ROclj

source

PyBUF_INDIRECTclj

source

PyBUF_MAX_NDIMclj

source

PyBUF_NDclj

source

PyBUF_READclj

source

PyBUF_RECORDSclj

source

PyBUF_RECORDS_ROclj

source

PyBUF_SIMPLEclj

source

PyBUF_STRIDEDclj

source

PyBUF_STRIDED_ROclj

source

PyBUF_STRIDESclj

source

PyBUF_WRITABLEclj

source

PyBUF_WRITEclj

source

PyBUF_WRITEABLEclj

source

PyBuffer_IsContiguousclj

(PyBuffer_IsContiguous view order)

Return 1 if the memory defined by the view is C-style (order is 'C') or Fortran-style (order is 'F') contiguous or either one (order is 'A'). Return 0 otherwise. This function always succeeds.

Return 1 if the memory defined by the view is C-style (order is 'C') or Fortran-style
(order is 'F') contiguous or either one (order is 'A'). Return 0 otherwise. This
function always succeeds.
sourceraw docstring

PyBuffer_Releaseclj

(PyBuffer_Release view)

Release the buffer view and decrement the reference count for view->obj. This function MUST be called when the buffer is no longer being used, otherwise reference leaks may occur.

It is an error to call this function on a buffer that was not obtained via PyObject_GetBuffer().

Release the buffer view and decrement the reference count for view->obj. This
function MUST be called when the buffer is no longer being used, otherwise reference
leaks may occur.

 It is an error to call this function on a buffer that was not obtained via
 PyObject_GetBuffer().
sourceraw docstring

PyBuffer_ToContiguousclj

(PyBuffer_ToContiguous buf src len order)

Copy len bytes from src to its contiguous representation in buf. order can be 'C' or 'F' (for C-style or Fortran-style ordering). 0 is returned on success, -1 on error.

This function fails if len != src->len.

Copy len bytes from src to its contiguous representation in buf. order can be 'C' or
'F' (for C-style or Fortran-style ordering). 0 is returned on success, -1 on error.

 This function fails if len != src->len.
sourceraw docstring

PyObject_CheckBufferclj

(PyObject_CheckBuffer obj)

Return 1 if obj supports the buffer interface otherwise 0. When 1 is returned, it doesn’t guarantee that PyObject_GetBuffer() will succeed. This function always succeeds.

Return 1 if obj supports the buffer interface otherwise 0. When 1 is returned, it
doesn’t guarantee that PyObject_GetBuffer() will succeed. This function always
succeeds.
sourceraw docstring

PyObject_GetBufferclj

(PyObject_GetBuffer exporter view flags)

Send a request to exporter to fill in view as specified by flags. If the exporter cannot provide a buffer of the exact type, it MUST raise PyExc_BufferError, set view->obj to NULL and return -1.

On success, fill in view, set view->obj to a new reference to exporter and return 0. In the case of chained buffer providers that redirect requests to a single object, view->obj MAY refer to this object instead of exporter (See Buffer Object Structures).

Successful calls to PyObject_GetBuffer() must be paired with calls to PyBuffer_Release(), similar to malloc() and free(). Thus, after the consumer is done with the buffer, PyBuffer_Release() must be called exactly once.

Send a request to exporter to fill in view as specified by flags. If the exporter
cannot provide a buffer of the exact type, it MUST raise PyExc_BufferError, set
view->obj to NULL and return -1.

 On success, fill in view, set view->obj to a new reference to exporter and return
 0. In the case of chained buffer providers that redirect requests to a single object,
 view->obj MAY refer to this object instead of exporter (See Buffer Object
 Structures).

 Successful calls to PyObject_GetBuffer() must be paired with calls to
 PyBuffer_Release(), similar to malloc() and free(). Thus, after the consumer is done
 with the buffer, PyBuffer_Release() must be called exactly once.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close