Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Improve coding style of the previous check-in and make it compile on the .NET Compact Framework. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | customDataTypes |
Files: | files | file ages | folders |
SHA1: |
3d482302d1af2107e70b332244816bf6 |
User & Date: | mistachkin 2016-06-19 03:03:55 |
Context
2016-06-19
| ||
03:06 | Minor reordering of conditionals in the InvokeReadValueCallback method. check-in: 5804b32b6d user: mistachkin tags: customDataTypes | |
03:03 | Improve coding style of the previous check-in and make it compile on the .NET Compact Framework. check-in: 3d482302d1 user: mistachkin tags: customDataTypes | |
02:59 | Integrate the new custom database type callbacks into the data reader class. check-in: df67a84c21 user: mistachkin tags: customDataTypes | |
Changes
Changes to System.Data.SQLite/SQLiteDataReader.cs.
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 ... 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 ... 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 |
if (!connection.TryGetTypeCallbacks(typeName, out callbacks) || (callbacks == null)) { return; } SQLiteReadValueCallback callback = callbacks.ReadValueCallback; object userData = callbacks.ReadValueUserData; if (callback != null) { callback( _activeStatement._sql, this, _flags, eventArgs, index, userData, out complete); /* throw */ } } finally { _flags |= SQLiteConnectionFlags.UseConnectionReadValueCallbacks; } } ................................................................................ if (complete) { byte[] bytes = value.BytesValue; if (bytes != null) { Array.Copy(bytes, 0, buffer, bufferoffset, length); return bytes.LongLength; } else { return -1; } } } ................................................................................ if (complete) { char[] chars = value.CharsValue; if (chars != null) { Array.Copy(chars, 0, buffer, bufferoffset, length); return chars.LongLength; } else { return -1; } } } |
< | > | > > | | | < > > > > > > > > > > |
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 ... 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 ... 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 |
if (!connection.TryGetTypeCallbacks(typeName, out callbacks) || (callbacks == null)) { return; } SQLiteReadValueCallback callback = callbacks.ReadValueCallback; if (callback == null) return; object userData = callbacks.ReadValueUserData; callback( _activeStatement._sql, this, _flags, eventArgs, index, userData, out complete); /* throw */ } finally { _flags |= SQLiteConnectionFlags.UseConnectionReadValueCallbacks; } } ................................................................................ if (complete) { byte[] bytes = value.BytesValue; if (bytes != null) { Array.Copy(bytes, 0, buffer, bufferoffset, length); #if !PLATFORM_COMPACTFRAMEWORK return bytes.LongLength; #else return bytes.Length; #endif } else { return -1; } } } ................................................................................ if (complete) { char[] chars = value.CharsValue; if (chars != null) { Array.Copy(chars, 0, buffer, bufferoffset, length); #if !PLATFORM_COMPACTFRAMEWORK return chars.LongLength; #else return chars.Length; #endif } else { return -1; } } } |