mpi4py.MPI.buffer
- class mpi4py.MPI.buffer
Bases:
object
Buffer.
Methods Summary
allocate
(nbytes[, clear])Buffer allocation.
fromaddress
(address, nbytes[, readonly])Buffer from address and size in bytes.
frombuffer
(obj[, readonly])Buffer from buffer-like object.
release
()Release the underlying buffer exposed by the buffer object.
tobytes
([order])Return the data in the buffer as a byte string.
Return a readonly version of the buffer object.
Attributes Summary
Buffer address.
Format of each element.
Size (in bytes) of each element.
Buffer size (in bytes).
Object exposing buffer.
Buffer is read-only.
Methods Documentation
- static allocate(nbytes, clear=False)
Buffer allocation.
- static fromaddress(address, nbytes, readonly=False)
Buffer from address and size in bytes.
- static frombuffer(obj, readonly=False)
Buffer from buffer-like object.
- tobytes(order=None)
Return the data in the buffer as a byte string.
Attributes Documentation
- address
Buffer address.
- format
Format of each element.
- itemsize
Size (in bytes) of each element.
- nbytes
Buffer size (in bytes).
- obj
Object exposing buffer.
- readonly
Buffer is read-only.