System.Data.SQLite
Check-in [e64388aacd]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix compilation errors for the .NET Compact Framework build.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | virtualTables
Files: files | file ages | folders
SHA1: e64388aacdf75f7867fb9c155c67b4607fc56b83
User & Date: mistachkin 2013-06-18 06:12:21
Context
2013-06-18
20:39
Fix xCreate and xConnect delegate signatures. Finish marshalling of the sqlite3_index_info structure. check-in: 7461bf423f user: mistachkin tags: virtualTables
06:12
Fix compilation errors for the .NET Compact Framework build. check-in: e64388aacd user: mistachkin tags: virtualTables
06:07
More work on input/output marshalling for the sqlite3_index_info structure. Also, refactoring to allow better portability to the .NET Compact Framework. check-in: ea5335378e user: mistachkin tags: virtualTables
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to System.Data.SQLite/SQLiteModuleBase.cs.

   558    558           }
   559    559   
   560    560           private static int ThirtyBits = 0x3fffffff;
   561    561   
   562    562           ///////////////////////////////////////////////////////////////////////
   563    563   
   564    564   #if PLATFORM_COMPACTFRAMEWORK
   565         -        protected virtual IntPtr IntPtrForOffset(
          565  +        private static IntPtr IntPtrForOffset(
   566    566               IntPtr pointer,
   567    567               int offset
   568    568               )
   569    569           {
   570    570               return new IntPtr(pointer.ToInt64() + offset);
   571    571           }
   572    572   #endif
................................................................................
   593    593               )
   594    594           {
   595    595   #if !PLATFORM_COMPACTFRAMEWORK
   596    596               return BitConverter.Int64BitsToDouble(Marshal.ReadInt64(
   597    597                   pointer, offset));
   598    598   #else
   599    599               return BitConverter.ToDouble(BitConverter.GetBytes(
   600         -                Marshal.ReadInt64(IntPtrForOffset(pointer, offset)), 0);
          600  +                Marshal.ReadInt64(IntPtrForOffset(pointer, offset))), 0);
   601    601   #endif
   602    602           }
   603    603   
   604    604           ///////////////////////////////////////////////////////////////////////
   605    605   
   606    606           private static IntPtr MarshalReadIntPtr(
   607    607               IntPtr pointer,
................................................................................
   639    639               )
   640    640           {
   641    641   #if !PLATFORM_COMPACTFRAMEWORK
   642    642               Marshal.WriteInt64(pointer, offset,
   643    643                   BitConverter.DoubleToInt64Bits(value));
   644    644   #else
   645    645               Marshal.WriteInt64(IntPtrForOffset(pointer, offset),
   646         -                BitConverter.ToInt64(BitConverter.GetBytes(value)));
          646  +                BitConverter.ToInt64(BitConverter.GetBytes(value), 0));
   647    647   #endif
   648    648           }
   649    649   
   650    650           ///////////////////////////////////////////////////////////////////////
   651    651   
   652    652           private static void MarshalWriteIntPtr(
   653    653               IntPtr pointer,