8 #include <rapidsmpf/memory/content_description.hpp>
9 #include <rapidsmpf/memory/packed_data.hpp>
10 #include <rapidsmpf/streaming/core/message.hpp>
22 {{obj.
data->mem_type(), obj.
data->size}}, ContentDescription::Spillable::YES
41 auto chunk = std::make_unique<PackedData>(
self.copy(reservation));
Description of an object's content.
Represents a reservation for future memory allocation.
Type-erased message wrapper around a payload.
T const & get() const
Reference to the payload.
constexpr std::uint64_t sequence_number() const noexcept
Returns the sequence number of this message.
ContentDescription get_content_description(PackedData const &obj)
Generate a content description for PackedData.
Message to_message(std::uint64_t sequence_number, std::unique_ptr< PackedData > chunk)
Wrap PackedData into a Message.
Bag of bytes with metadata suitable for sending over the wire.
std::unique_ptr< Buffer > data
The GPU data.