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
Attributes
The bufferâs 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.
Device
The device type where the buffer resides.
DeviceAllocationType
Determine if two buffers contain exactly the same data.
Buffer
True if buffer contents and size are equal
Compute hexadecimal representation of the buffer.
bytes
Whether the buffer is CPU-accessible.
Whether the buffer is mutable.
The memory manager associated with the buffer.
MemoryManager
The buffer size in bytes.
Slice this buffer. Memory is not copied.
You can also use the Python slice notation buffer[start:stop]
.
int
, default 0
Offset from start of buffer to slice.
int
, default None
Length of slice (default is until end of Buffer starting from offset).
Buffer
A logical view over this buffer.
Return this buffer as a Python bytes object. Memory is copied.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4