open

fun open(file: File, offset: Long = 0, length: Long = 0): JvmMappedMemoryChunk(source)

Map a region of a file into memory.

Parameters

file

The file to map

offset

Byte offset within the file (must be non-negative)

length

Number of bytes to map (0 = map to end of file)


fun open(path: String, offset: Long = 0, length: Long = 0): JvmMappedMemoryChunk(source)

Map a region of a file into memory.

Parameters

path

Path to the file

offset

Byte offset within the file

length

Number of bytes to map (0 = map to end of file)