pyarrow.allocate_buffer#

pyarrow.allocate_buffer(int64_tsize,MemoryPoolmemory_pool=None,resizable=False)#

Allocate a mutable buffer.

Parameters:
sizeint

Number of bytes to allocate (plus internal padding)

memory_poolMemoryPool, optional

The pool to allocate memory from.If not given, the default memory pool is used.

resizablebool, defaultFalse

If true, the returned buffer is resizable.

Returns:
bufferBuffer orResizableBuffer