Skip to content
Prev 326027 / 398503 Next

How can C++ read the R object written into socket with saveRDS or save

On Jun 25, 2013, at 11:52 AM, Rong lI Li wrote:

            
There is nothing preventing you from adding a frame with the size of the serialization - that is what Rserve does (mentioned earlier by Dirk - it even has a C++ client ...): it uses a fixed-size header that specifies the kind of payload and its length, then the serialization follows in the payload. That way you only need to read a fixed header.

Cheers,
Simon