R/simplemmap.R

Defines functions mmap munmap

Documented in mmap munmap

# Copyright 2016 R Core Team
# Distributed under GPL 2 or 3

mmap <- function(filename, type = c("double", "integer", "int"),
                 ptrOK = TRUE, wrtOK = FALSE, serOK = TRUE) {
    type = match.arg(type)
    .External(C_mmap_file, filename, type, ptrOK, wrtOK, serOK)
}

munmap <- function(x)
    invisible(.External(C_munmap_file, x))
ltierney/Rpkg-simplemmap documentation built on May 21, 2019, 8:41 a.m.