ns_database_options_set_encryption function

  1. @Native<Void Function(Pointer<ns_database_options_t>, Pointer<Uint8>, Size, ns_database_encrypt_fn, ns_database_decrypt_fn, Pointer<Void>)>(ffi.Pointer<ns_database_options_t>, ffi.Pointer<ffi.Uint8>, ffi.Size, ns_database_encrypt_fn, ns_database_decrypt_fn, ffi.Pointer<ffi.Void>)>()
void ns_database_options_set_encryption(
  1. Pointer<ns_database_options_t> options,
  2. Pointer<Uint8> key,
  3. int key_length,
  4. ns_database_encrypt_fn encrypt,
  5. ns_database_decrypt_fn decrypt,
  6. Pointer<Void> user_data,
)

Implementation

@ffi.Native<
    ffi.Void Function(
        ffi.Pointer<ns_database_options_t>,
        ffi.Pointer<ffi.Uint8>,
        ffi.Size,
        ns_database_encrypt_fn,
        ns_database_decrypt_fn,
        ffi.Pointer<ffi.Void>)>()
external void ns_database_options_set_encryption(
  ffi.Pointer<ns_database_options_t> options,
  ffi.Pointer<ffi.Uint8> key,
  int key_length,
  ns_database_encrypt_fn encrypt,
  ns_database_decrypt_fn decrypt,
  ffi.Pointer<ffi.Void> user_data,
);