coolbutuseless,
@coolbutuseless@fosstodon.org avatar

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • khanakhh
  • InstantRegret
  • Youngstown
  • ngwrru68w68
  • slotface
  • rosin
  • tacticalgear
  • mdbf
  • kavyap
  • modclub
  • JUstTest
  • osvaldo12
  • ethstaker
  • cubers
  • normalnudes
  • everett
  • tester
  • GTA5RPClips
  • Leos
  • cisconetworking
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines