Package panamagl.utils
Class ForeignMemoryUtils
java.lang.Object
panamagl.utils.ForeignMemoryUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalloc(double[] value) alloc(float[] value) alloc(int[] value) allocDouble(float[] value) allocDouble(int length) allocFloat(double[] value) allocFloat(int length) allocInt(int length) voidcopySegmentToArray(MemorySegment segment, double[] data) voidcopySegmentToArray(MemorySegment segment, float[] data) voidcopySegmentToArray(MemorySegment segment, int[] data) protected double[]dbl(float[] values) protected double[]dbl(int[] values) double[]toDouble(MemorySegment value) float[]toFloat(MemorySegment value) int[]toInt(MemorySegment value)
-
Field Details
-
allocator
-
-
Constructor Details
-
ForeignMemoryUtils
public ForeignMemoryUtils()
-
-
Method Details
-
alloc
-
alloc
-
alloc
-
alloc
-
allocDouble
-
allocDouble
-
allocFloat
-
allocInt
-
allocFloat
-
toInt
-
toFloat
-
toDouble
-
copySegmentToArray
-
copySegmentToArray
-
copySegmentToArray
-
dbl
protected double[] dbl(float[] values) -
dbl
protected double[] dbl(int[] values)
-