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 }
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); }
int ISQLite3Provider.Sqlite3ColumnBytes(IntPtr stm, int columnIndex) { return(SQLite3RuntimeProvider.sqlite3_column_bytes(stm.ToInt64(), columnIndex)); }