Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
Go to the documentation of this file. 1 #ifndef __LIBFF_FFI_FFI_SERIALIZATION_HPP__
2 #define __LIBFF_FFI_FFI_SERIALIZATION_HPP__
39 template<
typename FieldT>
44 template<
typename FieldT>
49 template<
typename GroupT>
54 template<
typename GroupT>
56 const GroupT &g,
const void *buffer,
size_t buffer_size);
64 #endif // __LIBFF_FFI_FFI_SERIALIZATION_HPP__
bool object_write_to_buffer(const T &object, void *buffer, size_t buffer_size)
bool group_element_write(const GroupT &g, const void *buffer, size_t buffer_size)
bool field_element_write(const FieldT &f, void *buffer, size_t buffer_size)
bool object_read_from_buffer(T &object, const void *buffer, size_t buffer_size)
bool group_element_read(GroupT &g, const void *buffer, size_t buffer_size)
bool field_element_read(FieldT &f, const void *buffer, size_t buffer_size)