hi Saul,

Are you able to use the buffer/memoryview protocol? Instances of
pyarrow.Buffer, like PlasmaBuffer, support this

https://github.com/apache/arrow/blob/master/python/pyarrow/plasma.pyx#L182

- Wes

On Tue, Mar 6, 2018 at 3:09 PM, Saul Shanabrook <s.shanabr...@gmail.com> wrote:
> I am trying to use the Plasma store to back xnd objects. Xnd (
> https://xnd.readthedocs.io/en/latest/xnd/index.html) is a container library
> in C that has Python bindings. I would like to get a pointer to the
> allocated memory after creating or get an object in Plasma. I see that this
> is supported in the C++ API (
> https://arrow.apache.org/docs/cpp/classplasma_1_1_plasma_client.html#ac18ab9cc792c620a97a3dcb165e0ecd7)
> but not in the python API (as far as I can tell). Is it possible to use the
> C++ Plasma API from a C project? If not, would it make sense to expose
> pointer access on the Python API using capsules
> https://docs.python.org/3.6/c-api/capsule.html
> <https://docs.python.org/3.6/c-api/capsule.html#capsules>?

Reply via email to