mvl_remap: Enlarge memory map to include recently loaded data.

View source: R/RMVL.R

mvl_remapR Documentation

Enlarge memory map to include recently loaded data.

Description

This function operates on MVL files opened for writing. When writing new data to the MVL file that data is appended at the end and past the end of previously mapped data. Calling mvl_remap() updates the memory mapping to include all the data written before mvl_remap() was called. The MVL file directory is also updated to include recently added entries. Old handles can still be used, but will not include updated directory information. MVL_OBJECT's previously obtained from this handle continue to be valid.

Usage

mvl_remap(MVLHANDLE, append = TRUE)

Arguments

MVLHANDLE

handle to opened MVL file as generated by mvl_open() or mvl_remap()

append

specify FALSE when you do not intend to write the file.

Details

mvl_remap returns a handle with updated directory.

Value

handle to MVL file, with updated directory.

See Also

mvl_open, mvl_close

Examples

## Not run: 
Mtmp<-mvl_open("tmp_a.mvl", append=TRUE, create=TRUE)
mvl_write_object(Mtmp, runif(100), "vec1")
Mtmp<-mvl_remap(Mtmp)
print(Mtmp["vec1"])

## End(Not run)

RMVL documentation built on Nov. 2, 2023, 6:09 p.m.

Related to mvl_remap in RMVL...