pyarrow.foreign_buffer

pyarrow.foreign_buffer(address, size, base=None)

Construct an Arrow buffer with the given address and size, optionally backed by the Python base object.

The base object, if given, will be kept alive as long as this buffer is alive, including accross language boundaries (for example if the buffer is referenced by C++ code).