|
ttg 1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
|
#include <data_descriptor.h>
Public Attributes | |
| const char * | name |
| uint64_t(* | payload_size )(const void *object) |
measures the size of the binary representation of object | |
| uint64_t(* | pack_payload )(const void *object, uint64_t max_nbytes_to_write, uint64_t offset, void *buf) |
| serializes object to a buffer | |
| uint64_t(* | unpack_payload )(void *object, uint64_t max_nbytes_to_read, uint64_t offset, const void *buf) |
| deserializes object from a buffer | |
| void(* | print )(const void *object) |
This provides an efficient C API for serializing/deserializing a data type to a nonportable contiguous bytestring. An object of this type will need to be provided for each serializable type. The default implementation, in serialization.h, works only for primitive/POD data types; backend-specific implementations may be available in backend/serialization.h .
Definition at line 23 of file data_descriptor.h.
| const char* ttg_data_descriptor::name |
Definition at line 24 of file data_descriptor.h.
| uint64_t(* ttg_data_descriptor::pack_payload) (const void *object, uint64_t max_nbytes_to_write, uint64_t offset, void *buf) |
serializes object to a buffer
| [in] | object | pointer to the object to be serialized |
| [in] | max_nbytes_to_write | the maximum number of bytes to write |
| [in] | offset | the position in buf where the first byte of serialized data will be written |
| [in,out] | buf | the data buffer that will contain the serialized representation of the object |
buf after the last byte written Definition at line 37 of file data_descriptor.h.
| uint64_t(* ttg_data_descriptor::payload_size) (const void *object) |
measures the size of the binary representation of object
| [in] | object | pointer to the object to be serialized |
object Definition at line 29 of file data_descriptor.h.
| void(* ttg_data_descriptor::print) (const void *object) |
Definition at line 47 of file data_descriptor.h.
| uint64_t(* ttg_data_descriptor::unpack_payload) (void *object, uint64_t max_nbytes_to_read, uint64_t offset, const void *buf) |
deserializes object from a buffer
| [in] | object | pointer to the object to be deserialized |
| [in] | max_nbytes_to_read | the maximum number of bytes to read |
| [in] | offset | the position in buf where the first byte of serialized data will be read |
| [in] | buf | the data buffer that contains the serialized representation of the object |
buf after the last byte read Definition at line 45 of file data_descriptor.h.
1.9.8