[erlang-questions] [ANN] eipp: A C++11 Header Only Library for using erlang ei library.

月忧茗 yueyoum@REDACTED
Wed Mar 29 12:29:33 CEST 2017


https://github.com/yueyoum/eipp

This library to decode/encode erlang extern format more convenient.

Encode:

you can encode std::list, std::vector, std::map, std::tuple  to ext
driectly.

e.g.


auto data = std::make_tuple(1, "abc");
encoder.encoder(data);
std::string output = encoder.get_data();

Decode:

Just define the schema of the ext structs.  and just one api call.
e.g.

using T = eipp::Tuple<eipp::Long, eipp::Atom, epp::List<eipp::Long>>;
auto result = decoder.parse<T>();


More examples in the github  link above.




-- 
My GitHub
https://github.com/yueyoum
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170329/c57c0cab/attachment.htm>


More information about the erlang-questions mailing list