Learn R Programming

RMVL (version 1.1.0.2)

mvl_close: Close MVL file

Description

Closes MVL file releasing all resources. For read-only files the memory is unmapped, reducing the virtual memory footprint. For files opened for writing the directory is written out, so it is important to call mvl_close or the newly written file will be corrupt. After mvl_close() all previously obtained MVL_OBJECT's with this handle become invalid.

Usage

mvl_close(MVLHANDLE, checksums = FALSE)

Value

None

Arguments

MVLHANDLE

handle to opened MVL file as generated by mvl_open()

checksums

set to true to compute and write checksums. Checksums are computing by rereading data in the MVL file which can increase I/O for temporary files. We recommend to always include checksums into final output files as file size increase is very small (1/8192 fraction).

Details

When checksums is set to TRUE mvl_close() calls mvl_remap() and then computes and writes checksums. You can add checksums to MVL file by first calling mvl_open(filename, append=TRUE, create=FALSE) and then mvl_close(handle, checksums=TRUE).

See Also

mvl_open, mvl_remap