private sqlite3_rekey ( IntPtr db, byte key, int keylen ) : int | ||
db | IntPtr | |
key | byte | |
keylen | int | |
return | int |
internal override void ChangePassword(byte[] newPasswordBytes) { int n = UnsafeNativeMethods.sqlite3_rekey(_sql, newPasswordBytes, (newPasswordBytes == null) ? 0 : newPasswordBytes.Length); if (n > 0) { throw new SqliteException(n, SQLiteLastError()); } }
internal override void ChangePassword(byte[] newPasswordBytes) { #if MOBILE throw new PlatformNotSupportedException(); #else int n = UnsafeNativeMethods.sqlite3_rekey(_sql, newPasswordBytes, (newPasswordBytes == null) ? 0 : newPasswordBytes.Length); if (n > 0) { throw new SqliteException(n, SQLiteLastError()); } #endif }