search for: r_outpstream_t

Displaying 2 results from an estimated 2 matches for "r_outpstream_t".

Did you mean: r_outpstream_st
2012 Mar 22
1
Serializing many small objects efficiently
...in each separately). I am trying to write a serialization function for a format called typedbytes, which is used as an interchange format in Hadoop circles. Since I would need to serialize according to the internal R format many small R objects I looked at the c interface void R_Serialize(SEXP s, R_outpstream_t ops); SEXP R_Unserialize(R_inpstream_t ips); If I look at the source for e.g. unserialize is see a .Call("R_unserialize", connection, refhook, PACKAGE = "base") which, despite the name of the second argument, accepts as 'connection' a raw vector. Is there any way to...
2009 Nov 07
1
getConnection, R_outpstream_st
Hello, I'm trying to use the limited connections api defined in Rinternals.h. I have code that looks like this (inspired from do_serializeToConn) : SEXP serialize_to_connection( SEXP xp, SEXP connection ){ Rconnection con ; struct R_outpstream_st out; R_pstream_format_t type = R_pstream_binary_format ; SEXP (*hook)(SEXP, SEXP) = NULL ; con = getConnection(Rf_asInteger(connection));