kmath-memory
/
space.kscience.kmath.memory
/
readAsMemory
jvm
read
As
Memory
inline fun <
R
>
Path
.
readAsMemory
(position:
Long
= 0, size:
Long
= Files.size(this), block:
Memory
.() ->
R
):
R
Content copied to clipboard
Uses direct memory-mapped buffer from file to read something and close it afterwards.