Returns a list containing the fields of a memory mapped vector
Source:R/RcppExports.R
mmap_details.Rd
Returns a list containing the fields of a memory mapped vector
Value
A list with the fields:
file_name
: A character scalar. The file name of that file that was mappedsize_bytes
: An integer scalar. The number of bytes of the memory maplength
: An integer scalar. The number of entries in the memory mapped vectortype
: "double", or "integer", indicating the data type of the memory mapptrOK
: logical scalar. Unknown meaningwrtOK
: logical scalar.TRUE
if writing to the memory map is allowedserOK
: logical scalar. Unknown meaning
Examples
mmap_make(data = 1:10) |> mmap_details()
#> $file_name
#> [1] "/tmp/RtmpP8knXX/file1430c7b714c6"
#>
#> $size_bytes
#> [1] 40
#>
#> $length
#> [1] 10
#>
#> $type
#> [1] "integer"
#>
#> $ptrOK
#> [1] TRUE
#>
#> $wrtOK
#> [1] FALSE
#>
#> $serOK
#> [1] FALSE
#>