| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/pyarrow.Buffer.html | [Back] [Original] |
Section Navigation
Bases: _Weakrefable
The base class for all Arrow buffers.
A buffer represents a contiguous memory area. Many buffers will own their memory, though not all of them do.
Methods
|
|
|
Determine if two buffers contain exactly the same data. |
|
Compute hexadecimal representation of the buffer. |
|
Slice this buffer. |
|
Return this buffer as a Python bytes object. |
Attributes
The buffer's address, as an integer. |
|
The device where the buffer resides. |
|
The device type where the buffer resides. |
|
Whether the buffer is CPU-accessible. |
|
Whether the buffer is mutable. |
|
The memory manager associated with the buffer. |
|
The buffer size in bytes. |
The buffers address, as an integer.
The returned address may point to CPU or device memory. Use is_cpu() to disambiguate.
The device where the buffer resides.
DeviceThe device type where the buffer resides.
DeviceAllocationTypeDetermine if two buffers contain exactly the same data.
Whether the buffer is CPU-accessible.
Whether the buffer is mutable.
The memory manager associated with the buffer.
MemoryManagerThe buffer size in bytes.
Slice this buffer. Memory is not copied.
You can also use the Python slice notation buffer[start:stop].
Return this buffer as a Python bytes object. Memory is copied.
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |