Exemplo n.º 1
0
 public int bind_blob(IntPtr stmt, int idx, byte[] val, SQLiteDestructor destructor)
 {
     unsafe
     {
         fixed(byte *b = val)
         {
             return(bind_blob(stmt, idx, b, val.Length, destructor));
         }
     }
 }
Exemplo n.º 2
0
 public int bind_blob(IntPtr stmt, int idx, byte[] val, SQLiteDestructor destructor)
 {
     unsafe
     {
         fixed (byte* b = val)
         {
             return bind_blob(stmt, idx, b, val.Length, destructor);
         }
     }
 }
Exemplo n.º 3
0
 public int bind_text(IntPtr stmt, int idx, string val, SQLiteDestructor destructor)
 {
     SQLiteString nativeStr = new SQLiteString(this, _Encoding, val);
     if (_Encoding == Encoding.UTF8)
     {
         return bind_text(stmt, idx, nativeStr.ToSQLite(), nativeStr.Length, destructor);
     }
     else
     {
         return bind_text16(stmt, idx, nativeStr.ToSQLite(), nativeStr.Length, destructor);
     }
 }
Exemplo n.º 4
0
        public int bind_text(IntPtr stmt, int idx, string val, SQLiteDestructor destructor)
        {
            SQLiteString nativeStr = new SQLiteString(this, _Encoding, val);

            if (_Encoding == Encoding.UTF8)
            {
                return(bind_text(stmt, idx, nativeStr.ToSQLite(), nativeStr.Length, destructor));
            }
            else
            {
                return(bind_text16(stmt, idx, nativeStr.ToSQLite(), nativeStr.Length, destructor));
            }
        }
Exemplo n.º 5
0
 private static extern int sqlite3_bind_text16(IntPtr stmt, int idx, IntPtr val, int n, SQLiteDestructor destructor);
Exemplo n.º 6
0
 private unsafe static extern int sqlite3_bind_blob(IntPtr stmt, int idx, byte *val, int n, SQLiteDestructor destructor);
Exemplo n.º 7
0
 protected override int bind_text16(IntPtr stmt, int idx, IntPtr val, int n, SQLiteDestructor destructor)
 {
     return(sqlite3_bind_text16(stmt, idx, val, n, destructor));
 }
Exemplo n.º 8
0
 protected override unsafe int bind_blob(IntPtr stmt, int idx, byte *val, int n, SQLiteDestructor destructor)
 {
     return(sqlite3_bind_blob(stmt, idx, val, n, destructor));
 }
Exemplo n.º 9
0
 private static extern int sqlite3_bind_text16(IntPtr stmt, int idx, IntPtr val, int n, SQLiteDestructor destructor);
Exemplo n.º 10
0
 private static unsafe extern int sqlite3_bind_blob(IntPtr stmt, int idx, byte* val, int n, SQLiteDestructor destructor);
Exemplo n.º 11
0
 protected override int bind_text16(IntPtr stmt, int idx, IntPtr val, int n, SQLiteDestructor destructor)
 {
     return sqlite3_bind_text16(stmt, idx, val, n, destructor);
 }
Exemplo n.º 12
0
 protected unsafe override int bind_blob(IntPtr stmt, int idx, byte* val, int n, SQLiteDestructor destructor)
 {
     return sqlite3_bind_blob(stmt, idx, val, n, destructor);
 }
Exemplo n.º 13
0
 protected abstract int bind_text16(IntPtr stmt, int idx, IntPtr val, int n, SQLiteDestructor destructor);
Exemplo n.º 14
0
 protected unsafe abstract int bind_blob(IntPtr stmt, int idx, byte * val, int len, SQLiteDestructor destructor);
Exemplo n.º 15
0
 protected abstract int bind_text16(IntPtr stmt, int idx, IntPtr val, int n, SQLiteDestructor destructor);
Exemplo n.º 16
0
 protected abstract unsafe int bind_blob(IntPtr stmt, int idx, byte *val, int len, SQLiteDestructor destructor);