ns_database_acquire function

  1. @Native<Pointer<ns_database_t> Function(Pointer<Char>, Pointer<Uint8>, Size, ns_database_encrypt_fn, ns_database_decrypt_fn, Pointer<Void>, Pointer<ns_kdf_params_t>)>(ffi.Pointer<ffi.Char>, ffi.Pointer<ffi.Uint8>, ffi.Size, ns_database_encrypt_fn, ns_database_decrypt_fn, ffi.Pointer<ffi.Void>, ffi.Pointer<ns_kdf_params_t>)>()
Pointer<ns_database_t> ns_database_acquire(
  1. Pointer<Char> filename,
  2. Pointer<Uint8> encryption_key,
  3. int encryption_key_length,
  4. ns_database_encrypt_fn encrypt,
  5. ns_database_decrypt_fn decrypt,
  6. Pointer<Void> encryption_user_data,
  7. Pointer<ns_kdf_params_t> kdf_params,
)

Implementation

@ffi.Native<
    ffi.Pointer<ns_database_t> Function(
        ffi.Pointer<ffi.Char>,
        ffi.Pointer<ffi.Uint8>,
        ffi.Size,
        ns_database_encrypt_fn,
        ns_database_decrypt_fn,
        ffi.Pointer<ffi.Void>,
        ffi.Pointer<ns_kdf_params_t>)>()
external ffi.Pointer<ns_database_t> ns_database_acquire(
  ffi.Pointer<ffi.Char> filename,
  ffi.Pointer<ffi.Uint8> encryption_key,
  int encryption_key_length,
  ns_database_encrypt_fn encrypt,
  ns_database_decrypt_fn decrypt,
  ffi.Pointer<ffi.Void> encryption_user_data,
  ffi.Pointer<ns_kdf_params_t> kdf_params,
);