sqlite3_key() private method

private sqlite3_key ( IntPtr db, byte key, int keylen ) : int
db IntPtr
key byte
keylen int
return int
Example #1
0
        internal override void SetPassword(byte[] passwordBytes)
        {
            int n = UnsafeNativeMethods.sqlite3_key(_sql, passwordBytes, passwordBytes.Length);

            if (n > 0)
            {
                throw new SqliteException(n, SQLiteLastError());
            }
        }
Example #2
0
        internal override void SetPassword(byte[] passwordBytes)
        {
#if MOBILE
            throw new PlatformNotSupportedException();
#else
            int n = UnsafeNativeMethods.sqlite3_key(_sql, passwordBytes, passwordBytes.Length);
            if (n > 0)
            {
                throw new SqliteException(n, SQLiteLastError());
            }
#endif
        }