Beispiel #1
0
        static public int sqlite3_blob_close(sqlite3_blob blob)
        {
            int rc = _imp.sqlite3_blob_close(blob.ptr);

            blob.set_already_disposed();
            return(rc);
        }
Beispiel #2
0
        internal static sqlite3_blob From(IntPtr p)
        {
            var h = new sqlite3_blob();

            h.SetHandle(p);
            return(h);
        }
Beispiel #3
0
        static public int sqlite3_blob_close(sqlite3_blob blob)
        {
            int rc = _imp.sqlite3_blob_bytes(blob.ptr);

            blob.done();
            return(rc);
        }
Beispiel #4
0
        static public int sqlite3_blob_open(sqlite3 db, string sdb, string table, string col, long rowid, int flags, out sqlite3_blob blob)
        {
            IntPtr p;
            int    rc = _imp.sqlite3_blob_open(db.ptr, sdb, table, col, rowid, flags, out p);

            blob = new sqlite3_blob(p);
            return(rc);
        }
Beispiel #5
0
        static public int sqlite3_blob_open(sqlite3 db, byte[] db_utf8, byte[] table_utf8, byte[] col_utf8, long rowid, int flags, out sqlite3_blob blob)
        {
            IntPtr p;
            int    rc = _imp.sqlite3_blob_open(db.ptr, db_utf8, table_utf8, col_utf8, rowid, flags, out p);

            blob = new sqlite3_blob(p);
            return(rc);
        }
Beispiel #6
0
 static public int sqlite3_blob_read(sqlite3_blob blob, byte[] b, int bOffset, int n, int offset)
 {
     return(_imp.sqlite3_blob_read(blob.ptr, b, bOffset, n, offset));
 }
Beispiel #7
0
 static public int sqlite3_blob_read(sqlite3_blob blob, byte[] b, int n, int offset)
 {
     // TODO why would anyone want to read a different number of bytes than the size of the array given?
     return(_imp.sqlite3_blob_read(blob.ptr, b, n, offset));
 }
Beispiel #8
0
 static public int sqlite3_blob_bytes(sqlite3_blob blob)
 {
     return(_imp.sqlite3_blob_bytes(blob.ptr));
 }
Beispiel #9
0
 static public int sqlite3_blob_read(sqlite3_blob blob, byte[] b, int bOffset, int n, int offset)
 {
     return _imp.sqlite3_blob_read(blob.ptr, b, bOffset, n, offset);
 }
Beispiel #10
0
 static public int sqlite3_blob_read(sqlite3_blob blob, byte[] b, int n, int offset)
 {
     // TODO why would anyone want to read a different number of bytes than the size of the array given?
     return _imp.sqlite3_blob_read(blob.ptr, b, n, offset);
 }
Beispiel #11
0
 static public int sqlite3_blob_close(sqlite3_blob blob)
 {
     int rc = _imp.sqlite3_blob_close(blob.ptr);
     blob.set_already_disposed();
     return rc;
 }
Beispiel #12
0
 static public int sqlite3_blob_bytes(sqlite3_blob blob)
 {
     return _imp.sqlite3_blob_bytes(blob.ptr);
 }
Beispiel #13
0
 static public int sqlite3_blob_open(sqlite3 db, string sdb, string table, string col, long rowid, int flags, out sqlite3_blob blob)
 {
     IntPtr p;
     int rc = _imp.sqlite3_blob_open(db.ptr, sdb, table, col, rowid, flags, out p);
     blob = new sqlite3_blob(p);
     return rc;
 }
Beispiel #14
0
 static public int sqlite3_blob_close(sqlite3_blob blob)
 {
     int rc = _imp.sqlite3_blob_bytes(blob.ptr);
     blob.done();
     return rc;
 }