#[no_mangle]
pub unsafe extern "C" fn Java_io_projectliberty_graphsdk_Native_initializeGraphState<'local>(
env: JNIEnv<'local>,
_class: JClass<'local>,
environment: JByteArray<'_>
) -> jlongExpand description
Initializes the graph state and returns a handle to it.
The handle is a pointer to the memory location of the state.
The memory will be freed when freeGraphState is called.
Arguments
environment- the environment to initialize the graph state with
Returns
jlong- the handle to the graph state
Errors
SdkJniError- if initializing graph state fails