Skip to content

Support pinning of IPythonBuffer #1297

@slozier

Description

@slozier

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions