kmath
0.3.1-dev-RC
common
kmath-memory
/
space.kscience.kmath.memory
/
read
read
inline
fun
<
R
>
Memory
.
read
(
block
:
MemoryReader
.
(
)
->
R
)
:
R
(
source
)
Uses the memory for read then releases the reader.
fun
<
T
:
Any
>
MemoryReader
.
read
(
spec
:
MemorySpec
<
T
>
,
offset
:
Int
)
:
T
(
source
)
Reads the object with
spec
starting from
offset
.