コード例 #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);
        }
コード例 #2
0
ファイル: handles.cs プロジェクト: fengweijp/SQLitePCL.raw
        internal static sqlite3_blob From(IntPtr p)
        {
            var h = new sqlite3_blob();

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

            blob.done();
            return(rc);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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));
 }
コード例 #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));
 }
コード例 #8
0
 static public int sqlite3_blob_bytes(sqlite3_blob blob)
 {
     return(_imp.sqlite3_blob_bytes(blob.ptr));
 }
コード例 #9
0
ファイル: raw.cs プロジェクト: shiftkey/SQLitePCL.raw
 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);
 }
コード例 #10
0
ファイル: raw.cs プロジェクト: shiftkey/SQLitePCL.raw
 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);
 }
コード例 #11
0
ファイル: raw.cs プロジェクト: shiftkey/SQLitePCL.raw
 static public int sqlite3_blob_close(sqlite3_blob blob)
 {
     int rc = _imp.sqlite3_blob_close(blob.ptr);
     blob.set_already_disposed();
     return rc;
 }
コード例 #12
0
ファイル: raw.cs プロジェクト: shiftkey/SQLitePCL.raw
 static public int sqlite3_blob_bytes(sqlite3_blob blob)
 {
     return _imp.sqlite3_blob_bytes(blob.ptr);
 }
コード例 #13
0
ファイル: raw.cs プロジェクト: shiftkey/SQLitePCL.raw
 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;
 }
コード例 #14
0
ファイル: raw.cs プロジェクト: zgramana/SQLitePCL.raw
 static public int sqlite3_blob_close(sqlite3_blob blob)
 {
     int rc = _imp.sqlite3_blob_bytes(blob.ptr);
     blob.done();
     return rc;
 }