pyarrow.allocate_buffer

pyarrow.allocate_buffer(int64_t size, MemoryPool memory_pool=None, resizable=False)

Allocate mutable fixed-size buffer

Parameters:
  • size (int) – Number of bytes to allocate (plus internal padding)
  • memory_pool (MemoryPool, optional) – Uses default memory pool if not provided
  • resizable (boolean, default False) –
Returns:

buffer (Buffer or ResizableBuffer)