5 #ifndef __pinocchio_python_serialization_serialization_hpp__ 6 #define __pinocchio_python_serialization_serialization_hpp__ 8 #include "pinocchio/serialization/archive.hpp" 27 bp::def(
"loadFromBinary",(
void (*)(
T &, boost::asio::streambuf &))pinocchio::serialization::loadFromBinary<T>,
28 bp::args(
"object",
"stream_buffer"),
29 "Load an object from a binary buffer.");
31 bp::def(
"saveToBinary",(
void (*)(
const T &, boost::asio::streambuf &))pinocchio::serialization::saveToBinary<T>,
32 bp::args(
"object",
"stream_buffer"),
33 "Save an object to a binary buffer.");
36 bp::args(
"object",
"static_buffer"),
37 "Load an object from a static binary buffer.");
40 bp::args(
"object",
"static_buffer"),
41 "Save an object to a static binary buffer.");
47 #endif // ifndef __pinocchio_python_serialization_serialization_hpp__ void exposeSerialization()
Static buffer with pre-allocated memory.
boost::python::object getOrCreatePythonNamespace(const std::string &submodule_name)
Helper to create or simply return an existing namespace in Python.
Main pinocchio namespace.