MCPcopy Create free account
hub / github.com/apache/arrow / external_pointer_addr_integer64

Function external_pointer_addr_integer64

r/src/bridge.cpp:37–44  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

35
36// [[arrow::export]]
37cpp11::doubles external_pointer_addr_integer64(SEXP external_pointer) {
38 cpp11::writable::doubles out(1);
39 void* ptr_void = R_ExternalPtrAddr(external_pointer);
40 uint64_t ptr_int64 = reinterpret_cast<uintptr_t>(ptr_void);
41 memcpy(REAL(out), &ptr_int64, sizeof(uint64_t));
42 out.attr("class") = "integer64";
43 return out;
44}
45
46// [[arrow::export]]
47cpp11::raws external_pointer_addr_raw(SEXP external_pointer) {

Calls

no outgoing calls

Tested by

no test coverage detected