coolbutuseless, 1 month ago The reason I want to wrap existing memory in a raw vector: R does not expose handling of "connections" within C In C, I have existing memory to write to an R connection I have to alloc a RAWSXP of the appropriate size & copy the memory into it Then call out to R (from C) to the function writeBin() And writeBin() is just going to unbox this & use the raw memory So a 'fake' SEXP header would save a bit of unnecessary overhead & copying And there is lots of data to write! #RStats
The reason I want to wrap existing memory in a raw vector:
So a 'fake' SEXP header would save a bit of unnecessary overhead & copying
And there is lots of data to write!
#RStats