Derecho  0.9
Distributed systems toolkit for RDMA
Namespaces | Functions
SerializationSupport.cpp File Reference
#include <derecho/mutils-serialization/SerializationSupport.hpp>
#include <string.h>
Include dependency graph for SerializationSupport.cpp:

Go to the source code of this file.

Namespaces

 mutils
 

Functions

std::size_t mutils::to_bytes (const ByteRepresentable &b, char *v)
 calls b.to_bytes(v) when b is a ByteRepresentable; calls std::memcpy() when b is POD. More...
 
std::size_t mutils::bytes_size (const ByteRepresentable &b)
 calls b.bytes_size() when b is a ByteRepresentable; calls sizeof(decay_t<decltype(b)>) when b is a POD; custom logic is implemented for some STL types. More...
 
std::size_t mutils::to_bytes (const std::string &b, char *v)
 extracts the C string (char*) equivalent to this std::string and stores it in v More...
 
std::size_t mutils::bytes_size (const std::string &b)
 effectively strlen(). More...
 
std::function< void(char const *const, std::size_t)> mutils::post_to_buffer (std::size_t &index, char *dest_buf)
 
void mutils::post_object (const std::function< void(char const *const, std::size_t)> &f, const ByteRepresentable &br)
 
void mutils::post_object (const std::function< void(char const *const, std::size_t)> &f, const std::string &str)
 
std::size_t mutils::to_bytes_v (char *)
 For Serializing and Deserializing many objects at once. More...
 
std::size_t mutils::from_bytes_v (DeserializationManager *, char const *const)
 
std::size_t mutils::from_bytes_noalloc_v (DeserializationManager *, char const *const)