kmath-memory
/
space.kscience.kmath.memory
/
MemoryReader
common
Memory
Reader
interface
MemoryReader
Content copied to clipboard
The interface to read primitive types in this memory.
Functions
Properties
Extensions
Functions
readByte
Link copied to clipboard
common
abstract fun
readByte
(offset:
Int
):
Byte
Content copied to clipboard
Reads
Byte
at certain
offset
.
readDouble
Link copied to clipboard
common
abstract fun
readDouble
(offset:
Int
):
Double
Content copied to clipboard
Reads
Double
at certain
offset
.
readFloat
Link copied to clipboard
common
abstract fun
readFloat
(offset:
Int
):
Float
Content copied to clipboard
Reads
Float
at certain
offset
.
readInt
Link copied to clipboard
common
abstract fun
readInt
(offset:
Int
):
Int
Content copied to clipboard
Reads
Int
at certain
offset
.
readLong
Link copied to clipboard
common
abstract fun
readLong
(offset:
Int
):
Long
Content copied to clipboard
Reads
Long
at certain
offset
.
readShort
Link copied to clipboard
common
abstract fun
readShort
(offset:
Int
):
Short
Content copied to clipboard
Reads
Short
at certain
offset
.
release
Link copied to clipboard
common
abstract fun
release
()
Content copied to clipboard
Disposes this reader if needed.
Properties
memory
Link copied to clipboard
common
abstract val
memory
:
Memory
Content copied to clipboard
The underlying memory.
Extensions
read
Link copied to clipboard
common
fun <
T
:
Any
>
MemoryReader
.
read
(spec:
MemorySpec
<
T
>, offset:
Int
):
T
Content copied to clipboard
Reads the object with
spec
starting from
offset
.
readArray
Link copied to clipboard
common
inline fun <
T
:
Any
>
MemoryReader
.
readArray
(spec:
MemorySpec
<
T
>, offset:
Int
, size:
Int
):
Array
<
T
>
Content copied to clipboard
Reads array of
size
objects mapped by
spec
at certain
offset
.