PyBufferBase1DBuffer, BaseArrayBuffer, BaseBuffer, BaseNIOBuffer, Py2kBuffer, PyArray, PyArrayDerived, PyByteArray, PyByteArrayDerived, PyMemoryView, PyShadowString, PyString, PyStringDerived, PyUnicode, PyUnicodeDerived, SimpleBuffer, SimpleNIOBuffer, SimpleStringBuffer, SimpleWritableBuffer, Strided1DBuffer, Strided1DNIOBuffer, Strided1DWritableBuffer, SyspathArchive, ZeroByteBufferpublic interface BufferProtocol
PyBuffer.| Modifier and Type | Method | Description |
|---|---|---|
PyBuffer |
getBuffer(int flags) |
Method by which the consumer requests the buffer from the exporter.
|
PyBuffer getBuffer(int flags) throws PyException
PyBuffer.release() on the buffer it
obtained, since some objects alter their behaviour while buffers are exported.flags - specifying features demanded and the navigational capabilities of the consumerPyException - (BufferError) when expectations do not correspond with the buffer