Bag of bytes with metadata suitable for sending over the wire. More...
#include <packed_data.hpp>
Public Member Functions | |
| PackedData (std::unique_ptr< std::vector< std::uint8_t >> metadata, std::unique_ptr< Buffer > data) | |
| Construct from metadata and GPU data, taking ownership. More... | |
| PackedData (PackedData &&)=default | |
| PackedData is moveable. | |
| PackedData & | operator= (PackedData &&)=default |
| Move assignment. More... | |
| PackedData (PackedData const &)=delete | |
| PackedData & | operator= (PackedData const &)=delete |
| bool | empty () const |
| Check if the packed data is empty. More... | |
| rmm::cuda_stream_view | stream () const |
| Get the stream associated with the data buffer. More... | |
| PackedData | copy (MemoryReservation &reservation) const |
| Create a deep copy of the packed data. More... | |
Public Attributes | |
| std::unique_ptr< std::vector< std::uint8_t > > | metadata |
| The metadata. | |
| std::unique_ptr< Buffer > | data |
| The GPU data. | |
Bag of bytes with metadata suitable for sending over the wire.
Contains arbitrary GPU data and host side metadata indicating how the data should be interpreted.
Definition at line 26 of file packed_data.hpp.
|
inline |
Construct from metadata and GPU data, taking ownership.
| metadata | Host-side metadata describing the GPU data. |
| data | Pointer to GPU data. |
Definition at line 36 of file packed_data.hpp.
|
inline |
Create a deep copy of the packed data.
| reservation | Memory reservation to use. |
PackedData instance containing a deep copy of both the data buffer and metadata. Definition at line 90 of file packed_data.hpp.
|
inline |
Check if the packed data is empty.
Definition at line 69 of file packed_data.hpp.
|
default |
Move assignment.
|
inline |
Get the stream associated with the data buffer.
Definition at line 78 of file packed_data.hpp.