コード例 #1
0
        int SQLiteProvider.Sqlite3ColumnBytes(IntPtr stm, int columnIndex)
        {
#if NETFX_CORE
            return(NativeMethods.sqlite3_column_bytes(stm, columnIndex));
#elif WINDOWS_PHONE
            return(SQLite3RuntimeProvider.sqlite3_column_bytes(stm.ToInt64(), columnIndex));
#endif
        }
コード例 #2
0
        byte[] ISQLite3Provider.sqlite3_column_blob(IntPtr stm, int columnIndex)
        {
            IntPtr blobPointer = new IntPtr(SQLite3RuntimeProvider.sqlite3_column_blob(stm.ToInt64(), columnIndex));

            if (blobPointer == IntPtr.Zero)
            {
                return(null);
            }

            var length = SQLite3RuntimeProvider.sqlite3_column_bytes(stm.ToInt64(), columnIndex);

            byte[] result = new byte[length];
            Marshal.Copy(blobPointer, (byte[])result, 0, length);
            return(result);
        }
コード例 #3
0
 int ISQLite3Provider.Sqlite3ColumnBytes(IntPtr stm, int columnIndex)
 {
     return(SQLite3RuntimeProvider.sqlite3_column_bytes(stm.ToInt64(), columnIndex));
 }