kmath
jvm
kmath-memory
/
space.kscience.kmath.memory
/
readAsMemory
read
As
Memory
jvm
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.
Sources
jvm source
Link copied to clipboard