|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Local buffer (pointer and length) with an optional MemoryRegion; its first two fields are reinterpreted as a struct iovec by iovec(). More...
#include <Endpoint.hh>
Public Member Functions | |
| LocalAddress () | |
| Construct with a null buffer, zero length and no memory region. | |
| LocalAddress (void *buf, size_t len, MemoryRegion *mr=NULL) | |
| Construct from a buffer pointer, its length and an optional MemoryRegion. | |
| void * | buf () const |
| Return the buffer pointer. | |
| size_t | len () const |
| Return the buffer length. | |
| MemoryRegion * | mr () const |
| Return the associated MemoryRegion, or NULL if none is set. | |
| const struct iovec * | iovec () const |
| Return this object reinterpreted as a const struct iovec pointer (relies on _buf and _len being the first members). | |
Public Attributes | |
| void * | _buf |
| Buffer pointer (the iovec iov_base field). | |
| size_t | _len |
| Buffer length (the iovec iov_len field). | |
| MemoryRegion * | _mr |
| Associated memory region or NULL; set by Fabric::register_memory(LocalAddress*). | |
Local buffer (pointer and length) with an optional MemoryRegion; its first two fields are reinterpreted as a struct iovec by iovec().
| Pds::Fabrics::LocalAddress::LocalAddress | ( | ) |
Construct with a null buffer, zero length and no memory region.
| Pds::Fabrics::LocalAddress::LocalAddress | ( | void * | buf, |
| size_t | len, | ||
| MemoryRegion * | mr = NULL |
||
| ) |
Construct from a buffer pointer, its length and an optional MemoryRegion.
| void * Pds::Fabrics::LocalAddress::buf | ( | ) | const |
Return the buffer pointer.
| const struct iovec * Pds::Fabrics::LocalAddress::iovec | ( | ) | const |
Return this object reinterpreted as a const struct iovec pointer (relies on _buf and _len being the first members).
| size_t Pds::Fabrics::LocalAddress::len | ( | ) | const |
Return the buffer length.
| MemoryRegion * Pds::Fabrics::LocalAddress::mr | ( | ) | const |
Return the associated MemoryRegion, or NULL if none is set.
| void* Pds::Fabrics::LocalAddress::_buf |
Buffer pointer (the iovec iov_base field).
| size_t Pds::Fabrics::LocalAddress::_len |
Buffer length (the iovec iov_len field).
| MemoryRegion* Pds::Fabrics::LocalAddress::_mr |
Associated memory region or NULL; set by Fabric::register_memory(LocalAddress*).