public interface BufferProtocol
PyBuffer
.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