10#include <rdma/fabric.h>
11#include <rdma/fi_domain.h>
59 void const*
raw()
const noexcept;
65 std::size_t
size()
const noexcept;
Owning, type-safe representation of a libfabric address.
Non-owning view of a FabricInfo. Returned when iterating over a FabricInfoList.
bool operator==(RawFabricAddress const &other) const noexcept
void * raw() noexcept
Pointer to the raw address data.
RawFabricAddress()
Default is an empty fabric address.
static RawFabricAddress retrieveFabricAddress(::fid_t fid, FabricInfoView info)
Retrieve the fabric address of an endpoint by using its fid.
FabricAddressFormat _addressFormat
static RawFabricAddress fromBase64(std::string_view data, FabricAddressFormat addressFormat)
Parse a fabric address from a base64 encoded string.
static RawFabricAddress fromFid(::fid_t fid, FabricInfoView info)
Retrieve the fabric address of an endpoint by passing its fid.
std::vector< std::uint8_t > _inner
std::string toBase64() const
Convert the raw fabric address into a base64 encoded string.
FabricAddress decode() const
Decode into a strongly typed FabricAddress.
std::size_t size() const noexcept
Byte-length of the raw address data.
FabricAddressFormat format() const noexcept
Return the fabric specific libfaric address format, or FI_FORMAT_UNSPEC if empty.