Utilities for Python Buffer Protocol.

License

.

Copyright

Copyright © 2017-, Kaleidic Associates Advisory Limited

Authors

Ilya Yaroshenko

Enums

PythonBufferErrorCode

Aliases

Py_buffer
bufferinfo

Variables

pythonBufferFlags
int = (kind == Contiguous ? PyBuf_c_contiguous : PyBuf_strides) | (is(T == const) || is(T == immutable) ? PyBuf_records_ro : PyBuf_records)
Returns:

flags for request.

PyBuf_max_ndim
auto
PyBuf_simple
auto
PyBuf_writable
auto
PyBuf_writeable
auto
PyBuf_format
auto
PyBuf_nd
auto
PyBuf_strides
auto
PyBuf_c_contiguous
auto
PyBuf_f_contiguous
auto
PyBuf_any_contiguous
auto
PyBuf_indirect
auto
PyBuf_contig
auto
PyBuf_contig_ro
auto
PyBuf_strided
auto
PyBuf_strided_ro
auto
PyBuf_records
auto
PyBuf_records_ro
auto

Functions

fromPythonBuffernothrow, @nogc, @trustedReturns:

one of the

input_buffer_*
on failure and
success
otherwise.

toPythonBuffernothrow, @nogc, @trustedReturns:

one of the

cannot_create_*
on failure and
success
otherwise.

Structs

bufferinfo

Templates

pythonBufferFormat