@r-project.org
Subject: Re: [Rd] Heap access across multiple calls from R to C++
On 24 May 2023 at 09:09, Ivan Krylov wrote:
| On Wed, 24 May 2023 02:08:25 +0200
| wrote:
| > Is there a better way to do this?
|
| The .Call() interface (where functions take an arbitrary number of
| nativ
On 24 May 2023 at 09:09, Ivan Krylov wrote:
| On Wed, 24 May 2023 02:08:25 +0200
| wrote:
| > Is there a better way to do this?
|
| The .Call() interface (where functions take an arbitrary number of
| native R objects and return a native R object) combined with external
| pointers is likely to
On Wed, 24 May 2023 02:08:25 +0200
wrote:
> initialize = function() {
>
> .C("make_native_obj", self$native_obj)
>
> })
> extern "C" void make_native_obj(double *obj) {
>
> auto native_obj = new NativeObjStruct();
>
> memcpy(obj, &native_obj, sizeof(obj));
>
> }
> Is there a