| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1a9496a commit 332e384
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1709,6 +1709,9 @@ console.log(buf.readIntLE(0, 6).toString(16)); | |||
| 1709 | 1709 | <!-- YAML | |
| 1710 | 1710 | added: v0.5.0 | |
| 1711 | 1711 | changes: | |
| 1712 | + - version: REPLACEME | ||
| 1713 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 1714 | + description: This function is also available as `buf.readUint8()`. | ||
| 1712 | 1715 | - version: v10.0.0 | |
| 1713 | 1716 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 1714 | 1717 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -1736,6 +1739,9 @@ console.log(buf.readUInt8(2)); | |||
| 1736 | 1739 | <!-- YAML | |
| 1737 | 1740 | added: v0.5.5 | |
| 1738 | 1741 | changes: | |
| 1742 | + - version: REPLACEME | ||
| 1743 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 1744 | + description: This function is also available as `buf.readUint16BE()`. | ||
| 1739 | 1745 | - version: v10.0.0 | |
| 1740 | 1746 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 1741 | 1747 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -1762,6 +1768,9 @@ console.log(buf.readUInt16BE(1).toString(16)); | |||
| 1762 | 1768 | <!-- YAML | |
| 1763 | 1769 | added: v0.5.5 | |
| 1764 | 1770 | changes: | |
| 1771 | + - version: REPLACEME | ||
| 1772 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 1773 | + description: This function is also available as `buf.readUint16LE()`. | ||
| 1765 | 1774 | - version: v10.0.0 | |
| 1766 | 1775 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 1767 | 1776 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -1790,6 +1799,9 @@ console.log(buf.readUInt16LE(2).toString(16)); | |||
| 1790 | 1799 | <!-- YAML | |
| 1791 | 1800 | added: v0.5.5 | |
| 1792 | 1801 | changes: | |
| 1802 | + - version: REPLACEME | ||
| 1803 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 1804 | + description: This function is also available as `buf.readUint32BE()`. | ||
| 1793 | 1805 | - version: v10.0.0 | |
| 1794 | 1806 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 1795 | 1807 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -1814,6 +1826,9 @@ console.log(buf.readUInt32BE(0).toString(16)); | |||
| 1814 | 1826 | <!-- YAML | |
| 1815 | 1827 | added: v0.5.5 | |
| 1816 | 1828 | changes: | |
| 1829 | + - version: REPLACEME | ||
| 1830 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 1831 | + description: This function is also available as `buf.readUint32LE()`. | ||
| 1817 | 1832 | - version: v10.0.0 | |
| 1818 | 1833 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 1819 | 1834 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -1840,6 +1855,9 @@ console.log(buf.readUInt32LE(1).toString(16)); | |||
| 1840 | 1855 | <!-- YAML | |
| 1841 | 1856 | added: v0.11.15 | |
| 1842 | 1857 | changes: | |
| 1858 | + - version: REPLACEME | ||
| 1859 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 1860 | + description: This function is also available as `buf.readUintBE()`. | ||
| 1843 | 1861 | - version: v10.0.0 | |
| 1844 | 1862 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 1845 | 1863 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -1869,6 +1887,9 @@ console.log(buf.readUIntBE(1, 6).toString(16)); | |||
| 1869 | 1887 | <!-- YAML | |
| 1870 | 1888 | added: v0.11.15 | |
| 1871 | 1889 | changes: | |
| 1890 | + - version: REPLACEME | ||
| 1891 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 1892 | + description: This function is also available as `buf.readUintLE()`. | ||
| 1872 | 1893 | - version: v10.0.0 | |
| 1873 | 1894 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 1874 | 1895 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -2651,6 +2672,9 @@ console.log(buf); | |||
| 2651 | 2672 | <!-- YAML | |
| 2652 | 2673 | added: v0.5.0 | |
| 2653 | 2674 | changes: | |
| 2675 | + - version: REPLACEME | ||
| 2676 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 2677 | + description: This function is also available as `buf.writeUint8()`. | ||
| 2654 | 2678 | - version: v10.0.0 | |
| 2655 | 2679 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 2656 | 2680 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -2682,6 +2706,9 @@ console.log(buf); | |||
| 2682 | 2706 | <!-- YAML | |
| 2683 | 2707 | added: v0.5.5 | |
| 2684 | 2708 | changes: | |
| 2709 | + - version: REPLACEME | ||
| 2710 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 2711 | + description: This function is also available as `buf.writeUint16BE()`. | ||
| 2685 | 2712 | - version: v10.0.0 | |
| 2686 | 2713 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 2687 | 2714 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -2711,6 +2738,9 @@ console.log(buf); | |||
| 2711 | 2738 | <!-- YAML | |
| 2712 | 2739 | added: v0.5.5 | |
| 2713 | 2740 | changes: | |
| 2741 | + - version: REPLACEME | ||
| 2742 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 2743 | + description: This function is also available as `buf.writeUint16LE()`. | ||
| 2714 | 2744 | - version: v10.0.0 | |
| 2715 | 2745 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 2716 | 2746 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -2740,6 +2770,9 @@ console.log(buf); | |||
| 2740 | 2770 | <!-- YAML | |
| 2741 | 2771 | added: v0.5.5 | |
| 2742 | 2772 | changes: | |
| 2773 | + - version: REPLACEME | ||
| 2774 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 2775 | + description: This function is also available as `buf.writeUint32BE()`. | ||
| 2743 | 2776 | - version: v10.0.0 | |
| 2744 | 2777 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 2745 | 2778 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -2768,6 +2801,9 @@ console.log(buf); | |||
| 2768 | 2801 | <!-- YAML | |
| 2769 | 2802 | added: v0.5.5 | |
| 2770 | 2803 | changes: | |
| 2804 | + - version: REPLACEME | ||
| 2805 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 2806 | + description: This function is also available as `buf.writeUint32LE()`. | ||
| 2771 | 2807 | - version: v10.0.0 | |
| 2772 | 2808 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 2773 | 2809 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -2796,6 +2832,9 @@ console.log(buf); | |||
| 2796 | 2832 | <!-- YAML | |
| 2797 | 2833 | added: v0.5.5 | |
| 2798 | 2834 | changes: | |
| 2835 | + - version: REPLACEME | ||
| 2836 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 2837 | + description: This function is also available as `buf.writeUintBE()`. | ||
| 2799 | 2838 | - version: v10.0.0 | |
| 2800 | 2839 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 2801 | 2840 | description: Removed `noAssert` and no implicit coercion of the offset | |
@@ -2826,6 +2865,9 @@ console.log(buf); | |||
| 2826 | 2865 | <!-- YAML | |
| 2827 | 2866 | added: v0.5.5 | |
| 2828 | 2867 | changes: | |
| 2868 | + - version: REPLACEME | ||
| 2869 | + pr-url: https://github.com/nodejs/node/pull/34729 | ||
| 2870 | + description: This function is also available as `buf.writeUintLE()`. | ||
| 2829 | 2871 | - version: v10.0.0 | |
| 2830 | 2872 | pr-url: https://github.com/nodejs/node/pull/18395 | |
| 2831 | 2873 | description: Removed `noAssert` and no implicit coercion of the offset | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -965,6 +965,13 @@ function addBufferPrototypeMethods(proto) { | |||
| 965 | 965 | proto.readUIntBE = readUIntBE; | |
| 966 | 966 | proto.readUInt32BE = readUInt32BE; | |
| 967 | 967 | proto.readUInt16BE = readUInt16BE; | |
| 968 | + proto.readUintLE = readUIntLE; | ||
| 969 | + proto.readUint32LE = readUInt32LE; | ||
| 970 | + proto.readUint16LE = readUInt16LE; | ||
| 971 | + proto.readUint8 = readUInt8; | ||
| 972 | + proto.readUintBE = readUIntBE; | ||
| 973 | + proto.readUint32BE = readUInt32BE; | ||
| 974 | + proto.readUint16BE = readUInt16BE; | ||
| 968 | 975 | proto.readIntLE = readIntLE; | |
| 969 | 976 | proto.readInt32LE = readInt32LE; | |
| 970 | 977 | proto.readInt16LE = readInt16LE; | |
@@ -980,6 +987,13 @@ function addBufferPrototypeMethods(proto) { | |||
| 980 | 987 | proto.writeUIntBE = writeUIntBE; | |
| 981 | 988 | proto.writeUInt32BE = writeUInt32BE; | |
| 982 | 989 | proto.writeUInt16BE = writeUInt16BE; | |
| 990 | + proto.writeUintLE = writeUIntLE; | ||
| 991 | + proto.writeUint32LE = writeUInt32LE; | ||
| 992 | + proto.writeUint16LE = writeUInt16LE; | ||
| 993 | + proto.writeUint8 = writeUInt8; | ||
| 994 | + proto.writeUintBE = writeUIntBE; | ||
| 995 | + proto.writeUint32BE = writeUInt32BE; | ||
| 996 | + proto.writeUint16BE = writeUInt16BE; | ||
| 983 | 997 | proto.writeIntLE = writeIntLE; | |
| 984 | 998 | proto.writeInt32LE = writeInt32LE; | |
| 985 | 999 | proto.writeInt16LE = writeInt16LE; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -220,3 +220,12 @@ const assert = require('assert'); | |||
| 220 | 220 | val *= 0x100; | |
| 221 | 221 | } | |
| 222 | 222 | } | |
| 223 | + | ||
| 224 | + for (const fn of [ | ||
| 225 | + 'UInt8', 'UInt16LE', 'UInt16BE', 'UInt32LE', 'UInt32BE', 'UIntLE', 'UIntBE' | ||
| 226 | + ]) { | ||
| 227 | + const p = Buffer.prototype; | ||
| 228 | + const lowerFn = fn.replace(/UInt/, 'Uint'); | ||
| 229 | + assert.strictEqual(p[`write${fn}`], p[`write${lowerFn}`]); | ||
| 230 | + assert.strictEqual(p[`read${fn}`], p[`read${lowerFn}`]); | ||
| 231 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments