Currently the IPythonBuffer interface only provides access to the buffer via a Span. Adding IPythonBuffer.AsMemory<byte>() would enable some scenarios such as ctypes._CData.from_buffer which requires(?) pinning of the memory for use in unmanaged code.
@BCSharp since you implemented IPythonBuffer, any thoughts or concerns?
Currently the
IPythonBufferinterface only provides access to the buffer via a Span. AddingIPythonBuffer.AsMemory<byte>()would enable some scenarios such asctypes._CData.from_bufferwhich requires(?) pinning of the memory for use in unmanaged code.@BCSharp since you implemented
IPythonBuffer, any thoughts or concerns?