santazhang / simple-rpc

Simple RPC in C++, with Python binding
http://www.yzhang.net/simple-rpc/
BSD 3-Clause "New" or "Revised" License
27 stars 6 forks source link

Split Marshal and Buffer logic #13

Open santazhang opened 10 years ago

santazhang commented 10 years ago

Marshal: only in charge of (de)serialization, make it .h header only code

template <class Buffer>
Marshal<Buffer> operator << (Marshal<Buffer>& m, Data& data);

Buffer: handles data storage

Note that current python code might need major update to support this design.