Package dev.vortex.jni
Class NativeArrayIteratorMethods
java.lang.Object
dev.vortex.jni.NativeArrayIteratorMethods
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
free
(long pointer) Free all resources associated with the stream behind the pointer.static long
getDType
(long pointer) Get a pointer to the DType of the elements of the stream.static long
take
(long pointer) Returns a pointer to the next element in the stream, or -1 if there are no more elements.
-
Method Details
-
free
public static void free(long pointer) Free all resources associated with the stream behind the pointer. -
take
public static long take(long pointer) Returns a pointer to the next element in the stream, or -1 if there are no more elements.An exception is thrown if the stream is closed, either via free or due to a previous call to this method returning -1.
-
getDType
public static long getDType(long pointer) Get a pointer to the DType of the elements of the stream.
-