Commit 878fcd4
committed
netcore, netfx: merge WriteInt and SerializeInt
netcore: removed a simple WriteInt which did nothing besides call BinaryPrimitives.
netcore: when there's space in the packet buffer, WriteInt will now write to it directly (rather than write to a stack-allocated span and copy.)1 parent 06b292d commit 878fcd4
File tree
2 files changed
+13
-23
lines changed- src/Microsoft.Data.SqlClient
- netcore/src/Microsoft/Data/SqlClient
- netfx/src/Microsoft/Data/SqlClient
2 files changed
+13
-23
lines changedLines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1748 | 1748 | | |
1749 | 1749 | | |
1750 | 1750 | | |
1751 | | - | |
| 1751 | + | |
1752 | 1752 | | |
1753 | 1753 | | |
1754 | 1754 | | |
1755 | 1755 | | |
1756 | 1756 | | |
1757 | | - | |
1758 | | - | |
1759 | 1757 | | |
1760 | 1758 | | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
1761 | 1762 | | |
1762 | 1763 | | |
1763 | 1764 | | |
| |||
1767 | 1768 | | |
1768 | 1769 | | |
1769 | 1770 | | |
1770 | | - | |
| 1771 | + | |
1771 | 1772 | | |
1772 | 1773 | | |
1773 | 1774 | | |
1774 | 1775 | | |
1775 | | - | |
1776 | | - | |
1777 | | - | |
1778 | | - | |
1779 | | - | |
1780 | 1776 | | |
1781 | 1777 | | |
1782 | 1778 | | |
| |||
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1776 | 1776 | | |
1777 | 1777 | | |
1778 | 1778 | | |
1779 | | - | |
1780 | | - | |
1781 | | - | |
1782 | | - | |
1783 | | - | |
1784 | | - | |
1785 | | - | |
| 1779 | + | |
| 1780 | + | |
1786 | 1781 | | |
1787 | 1782 | | |
1788 | 1783 | | |
1789 | 1784 | | |
1790 | 1785 | | |
1791 | 1786 | | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
1792 | 1790 | | |
1793 | | - | |
| 1791 | + | |
1794 | 1792 | | |
1795 | | - | |
| 1793 | + | |
1796 | 1794 | | |
1797 | 1795 | | |
1798 | 1796 | | |
1799 | 1797 | | |
1800 | 1798 | | |
1801 | | - | |
1802 | | - | |
1803 | | - | |
1804 | | - | |
1805 | | - | |
| 1799 | + | |
1806 | 1800 | | |
1807 | 1801 | | |
1808 | 1802 | | |
| |||
0 commit comments