SealdSdk_Close method

int SealdSdk_Close(
  1. Pointer<NativeSealdSdk> sealdSdk,
  2. Pointer<Pointer<NativeSealdError>> error
)

Close the current SDK instance. This frees any lock on the current database, and frees the memory. After calling close, the instance cannot be used anymore.

@param sealdSdk The SealdSdk instance. @param error A pointer to a SealdError* where details will be stored in case of error. @return Error code: -1 if an error happened, 0 for success.

Implementation

int SealdSdk_Close(
  ffi.Pointer<NativeSealdSdk> sealdSdk,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdSdk_Close(
    sealdSdk,
    error,
  );
}