proc_buffer.hpp 577 Bytes
Newer Older
Matthieu Dorier's avatar
Matthieu Dorier committed
1 2 3 4 5
/*
 * (C) 2017 The University of Chicago
 * 
 * See COPYRIGHT in top-level directory.
 */
Matthieu Dorier's avatar
Matthieu Dorier committed
6 7 8 9 10 11 12 13 14
#ifndef __THALLIUM_PROC_BUFFER_HPP
#define __THALLIUM_PROC_BUFFER_HPP

#include <vector>
#include <mercury_proc.h>
#include <thallium/buffer.hpp>

namespace thallium {

Matthieu Dorier's avatar
Matthieu Dorier committed
15 16 17 18 19 20 21 22 23
/**
 * @brief Mercury callback that serializes/deserializes
 * a buffer (std::vector<char>).
 *
 * @param proc Mercury proc object.
 * @param data pointer to a buffer object.
 *
 * @return HG_SUCCESS or a Mercury error code.
 */
24
hg_return_t process_buffer(hg_proc_t proc, void* data);
Matthieu Dorier's avatar
Matthieu Dorier committed
25 26 27 28

} // namespace thallium

#endif