예제 #1
0
        public static int sqlite3_blob_open(Sqlite3Handle pDb, string db, string table, string column, long iRow,
                                            int flags, out Sqlite3BlobHandle ppBlob)
        {
            var zDb     = MarshalEx.StringToHGlobalUTF8(db);
            var zTable  = MarshalEx.StringToHGlobalUTF8(table);
            var zColumn = MarshalEx.StringToHGlobalUTF8(column);

            try {
                return(Sqlite3.blob_open(pDb, zDb, zTable, zColumn, iRow, flags, out ppBlob));
            } finally {
                if (zDb != IntPtr.Zero)
                {
                    Marshal.FreeHGlobal(zDb);
                }
                if (zTable != IntPtr.Zero)
                {
                    Marshal.FreeHGlobal(zTable);
                }
                if (zColumn != IntPtr.Zero)
                {
                    Marshal.FreeHGlobal(zColumn);
                }
            }
        }
예제 #2
0
 public int blob_open(Sqlite3Handle ppDb, IntPtr zDb, IntPtr zTable, IntPtr zColumn, long iRow, int flags, out Sqlite3BlobHandle ppBlob)
 => sqlite3_blob_open(ppDb, zDb, zTable, zColumn, iRow, flags, out ppBlob);
예제 #3
0
 private static extern int sqlite3_blob_open(Sqlite3Handle pDb, IntPtr zDb, IntPtr zTable, IntPtr zColumn, long iRow, int flags, out Sqlite3BlobHandle ppBlob);
예제 #4
0
 public int blob_bytes(Sqlite3BlobHandle pBlob)
 => sqlite3_blob_bytes(pBlob);
예제 #5
0
 private static extern int sqlite3_blob_bytes(Sqlite3BlobHandle pBlob);
예제 #6
0
 public static int sqlite3_blob_write(Sqlite3BlobHandle pBlob, IntPtr source, int length, int offset)
 => Sqlite3.blob_write(pBlob, source, length, offset);
예제 #7
0
 public static int sqlite3_blob_read(Sqlite3BlobHandle pBlob, IntPtr destination, int length, int offset)
 => Sqlite3.blob_read(pBlob, destination, length, offset);
예제 #8
0
 public int blob_write(Sqlite3BlobHandle pBlob, IntPtr source, int length, int offset)
 => sqlite3_blob_read(pBlob, source, length, offset);
예제 #9
0
 private static extern int sqlite3_blob_write(Sqlite3BlobHandle pBlob, IntPtr source, int length, int offset);
예제 #10
0
 private static extern int sqlite3_blob_read(Sqlite3BlobHandle pBlob, IntPtr destination, int length, int offset);
예제 #11
0
 public static int sqlite3_blob_bytes(Sqlite3BlobHandle pBlob)
 => Sqlite3.blob_bytes(pBlob);