Struct BufferDescriptorOps

Struct Documentation

struct BufferDescriptorOps

Type-erased descriptor conversion callbacks used by the serialization layer.

Public Members

std::function<std::shared_ptr<void>(const void*, const rmw_topic_endpoint_info_t&)> create_descriptor_with_endpoint

Create descriptor with endpoint awareness. Input pointer (impl) is a non-owning, read-only, type-erased BufferImplBase<T> instance. Return value is a type-erased backend descriptor message instance.

std::function<std::unique_ptr<void, void (*)(void*)>(const void*, const rmw_topic_endpoint_info_t&)> from_descriptor_with_endpoint

Create buffer impl from descriptor with endpoint awareness. Input pointer (descriptor) is a non-owning, type-erased backend descriptor message (read-only). Return value is a type-erased unique pointer to a newly created BufferImplBase<T> instance.