With C++ Apache Thrift library, is it possible to use only Serialization/Deserialization and not use RPC services?
As I understand from this page, it is possible to
If you simply want to serialize into bytes (without having to write to a file), you can use TMemoryBuffer.
TMemoryBuffer
boost::shared_ptr buffer(new TMemoryBuffer()); boost::shared_ptr binaryProtcol(new TBinaryProtocol(buffer)); obj->write(binaryProtcol.get()); obj->read((binaryProtcol.get()));