@@ -1431,6 +1431,8 @@ changes:
1431
1431
Reads an unsigned, big-endian 64-bit integer from ` buf ` at the specified
1432
1432
` offset ` .
1433
1433
1434
+ This function is also available under the ` readBigUint64BE ` alias.
1435
+
1434
1436
``` js
1435
1437
const buf = Buffer .from ([0x00 , 0x00 , 0x00 , 0x00 , 0xff , 0xff , 0xff , 0xff ]);
1436
1438
@@ -1458,6 +1460,8 @@ changes:
1458
1460
Reads an unsigned, little-endian 64-bit integer from ` buf ` at the specified
1459
1461
` offset ` .
1460
1462
1463
+ This function is also available under the ` readBigUint64LE ` alias.
1464
+
1461
1465
``` js
1462
1466
const buf = Buffer .from ([0x00 , 0x00 , 0x00 , 0x00 , 0xff , 0xff , 0xff , 0xff ]);
1463
1467
@@ -1775,6 +1779,8 @@ changes:
1775
1779
1776
1780
Reads an unsigned 8-bit integer from ` buf ` at the specified ` offset ` .
1777
1781
1782
+ This function is also available under the ` readUint8 ` alias.
1783
+
1778
1784
``` js
1779
1785
const buf = Buffer .from ([1 , - 2 ]);
1780
1786
@@ -1808,6 +1814,8 @@ changes:
1808
1814
Reads an unsigned, big-endian 16-bit integer from ` buf ` at the specified
1809
1815
` offset ` .
1810
1816
1817
+ This function is also available under the ` readUint16BE ` alias.
1818
+
1811
1819
``` js
1812
1820
const buf = Buffer .from ([0x12 , 0x34 , 0x56 ]);
1813
1821
@@ -1839,6 +1847,8 @@ changes:
1839
1847
Reads an unsigned, little-endian 16-bit integer from ` buf ` at the specified
1840
1848
` offset ` .
1841
1849
1850
+ This function is also available under the ` readUint16LE ` alias.
1851
+
1842
1852
``` js
1843
1853
const buf = Buffer .from ([0x12 , 0x34 , 0x56 ]);
1844
1854
@@ -1872,6 +1882,8 @@ changes:
1872
1882
Reads an unsigned, big-endian 32-bit integer from ` buf ` at the specified
1873
1883
` offset ` .
1874
1884
1885
+ This function is also available under the ` readUint32BE ` alias.
1886
+
1875
1887
``` js
1876
1888
const buf = Buffer .from ([0x12 , 0x34 , 0x56 , 0x78 ]);
1877
1889
@@ -1901,6 +1913,8 @@ changes:
1901
1913
Reads an unsigned, little-endian 32-bit integer from ` buf ` at the specified
1902
1914
` offset ` .
1903
1915
1916
+ This function is also available under the ` readUint32LE ` alias.
1917
+
1904
1918
``` js
1905
1919
const buf = Buffer .from ([0x12 , 0x34 , 0x56 , 0x78 ]);
1906
1920
@@ -1935,6 +1949,8 @@ Reads `byteLength` number of bytes from `buf` at the specified `offset`
1935
1949
and interprets the result as an unsigned big-endian integer supporting
1936
1950
up to 48 bits of accuracy.
1937
1951
1952
+ This function is also available under the ` readUintBE ` alias.
1953
+
1938
1954
``` js
1939
1955
const buf = Buffer .from ([0x12 , 0x34 , 0x56 , 0x78 , 0x90 , 0xab ]);
1940
1956
@@ -1969,6 +1985,8 @@ Reads `byteLength` number of bytes from `buf` at the specified `offset`
1969
1985
and interprets the result as an unsigned, little-endian integer supporting
1970
1986
up to 48 bits of accuracy.
1971
1987
1988
+ This function is also available under the ` readUintLE ` alias.
1989
+
1972
1990
``` js
1973
1991
const buf = Buffer .from ([0x12 , 0x34 , 0x56 , 0x78 , 0x90 , 0xab ]);
1974
1992
@@ -2384,6 +2402,8 @@ changes:
2384
2402
2385
2403
Writes ` value ` to ` buf ` at the specified ` offset ` as big-endian.
2386
2404
2405
+ This function is also available under the ` writeBigUint64BE ` alias.
2406
+
2387
2407
``` js
2388
2408
const buf = Buffer .allocUnsafe (8 );
2389
2409
@@ -2422,6 +2442,8 @@ console.log(buf);
2422
2442
// Prints: <Buffer de fa ce ca fe fa ca de>
2423
2443
```
2424
2444
2445
+ This function is also available under the ` writeBigUint64LE ` alias.
2446
+
2425
2447
### ` buf.writeDoubleBE(value[, offset]) `
2426
2448
<!-- YAML
2427
2449
added: v0.11.15
@@ -2769,6 +2791,8 @@ Writes `value` to `buf` at the specified `offset`. `value` must be a
2769
2791
valid unsigned 8-bit integer. Behavior is undefined when ` value ` is anything
2770
2792
other than an unsigned 8-bit integer.
2771
2793
2794
+ This function is also available under the ` writeUint8 ` alias.
2795
+
2772
2796
``` js
2773
2797
const buf = Buffer .allocUnsafe (4 );
2774
2798
@@ -2805,6 +2829,8 @@ Writes `value` to `buf` at the specified `offset` as big-endian. The `value`
2805
2829
must be a valid unsigned 16-bit integer. Behavior is undefined when ` value `
2806
2830
is anything other than an unsigned 16-bit integer.
2807
2831
2832
+ This function is also available under the ` writeUint16BE ` alias.
2833
+
2808
2834
``` js
2809
2835
const buf = Buffer .allocUnsafe (4 );
2810
2836
@@ -2839,6 +2865,8 @@ Writes `value` to `buf` at the specified `offset` as little-endian. The `value`
2839
2865
must be a valid unsigned 16-bit integer. Behavior is undefined when ` value ` is
2840
2866
anything other than an unsigned 16-bit integer.
2841
2867
2868
+ This function is also available under the ` writeUint16LE ` alias.
2869
+
2842
2870
``` js
2843
2871
const buf = Buffer .allocUnsafe (4 );
2844
2872
@@ -2873,6 +2901,8 @@ Writes `value` to `buf` at the specified `offset` as big-endian. The `value`
2873
2901
must be a valid unsigned 32-bit integer. Behavior is undefined when ` value `
2874
2902
is anything other than an unsigned 32-bit integer.
2875
2903
2904
+ This function is also available under the ` writeUint32BE ` alias.
2905
+
2876
2906
``` js
2877
2907
const buf = Buffer .allocUnsafe (4 );
2878
2908
@@ -2906,6 +2936,8 @@ Writes `value` to `buf` at the specified `offset` as little-endian. The `value`
2906
2936
must be a valid unsigned 32-bit integer. Behavior is undefined when ` value ` is
2907
2937
anything other than an unsigned 32-bit integer.
2908
2938
2939
+ This function is also available under the ` writeUint32LE ` alias.
2940
+
2909
2941
``` js
2910
2942
const buf = Buffer .allocUnsafe (4 );
2911
2943
@@ -2941,6 +2973,8 @@ Writes `byteLength` bytes of `value` to `buf` at the specified `offset`
2941
2973
as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined
2942
2974
when ` value ` is anything other than an unsigned integer.
2943
2975
2976
+ This function is also available under the ` writeUintBE ` alias.
2977
+
2944
2978
``` js
2945
2979
const buf = Buffer .allocUnsafe (6 );
2946
2980
@@ -2976,6 +3010,8 @@ Writes `byteLength` bytes of `value` to `buf` at the specified `offset`
2976
3010
as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
2977
3011
when ` value ` is anything other than an unsigned integer.
2978
3012
3013
+ This function is also available under the ` writeUintLE ` alias.
3014
+
2979
3015
``` js
2980
3016
const buf = Buffer .allocUnsafe (6 );
2981
3017
0 commit comments