15 if (offset + length >
len)
21 .addr =
addr + offset,
29 return ::fi_rma_iov{.addr =
addr, .len =
len, .key =
rkey};
34 return addr == other.addr &&
len == other.len &&
rkey == other.rkey;
44 return _inner == other._inner;
static Exception invalidArgument(fmt::format_string< T... > fmt, T &&... args)
Make an MXL_ERR_INVALID_ARG exception.
std::vector<::fi_rma_iov > _rmaIovs
RemoteRegionGroup(std::vector< RemoteRegion > const &group)
Convert a vector of RemoteRegion into a RemoteRegionGroup.
bool operator==(RemoteRegionGroup const &other) const noexcept
std::vector< RemoteRegion > _inner
::fi_rma_iov const * asRmaIovs() const noexcept
Get a pointer to an array of fi_rma_iov structures representing the remote regions.
Represent a remote memory region used for data transfer.
::fi_rma_iov toRmaIov() const noexcept
Convert this RemoteRegion to a struct fi_rma_iov used by libfabric RMA transfer functions.
bool operator==(RemoteRegion const &other) const noexcept
RemoteRegion sub(std::uint64_t offset, std::size_t length) const
Create a sub-region of this RemoteRegion.