view R/rdyncall/R/utils.R @ 61:c5a69c454963 default tip

- allow use of 'None' with 'Z' - bumped version to 1.4 (be in sync current dyncall version)
author Tassilo Philipp
date Mon, 03 Apr 2023 19:06:07 +0200
parents 0cfcc391201f
children
line wrap: on
line source

# Package: rdyncall
# File: R/utils.R
# Description: Low-level external pointer utility functions

is.nullptr     <- function(x)         .Call("isnullptr", x, PACKAGE="rdyncall")
as.extptr      <- function(x)         .Call("asextptr", x, PACKAGE="rdyncall")
offsetPtr      <- function(x, offset) .Call("offsetPtr", x, offset, PACKAGE="rdyncall")
is.externalptr <- function(x)         (typeof(x) == "externalptr")