| segment_create | R Documentation |
Create a new shared memory segment
segment_create(
size,
backing = c("auto", "mmap", "shm"),
path = NULL,
readonly = FALSE
)
size |
Size of the segment in bytes |
backing |
Backing type: "auto", "mmap", or "shm" |
path |
Optional file path for mmap backing (NULL for temp file) |
readonly |
Create as read-only (after initial write) |
A shard_segment object backed by shared memory.
seg <- segment_create(1024 * 1024)
segment_info(seg)
segment_close(seg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.