@ -350,8 +350,8 @@ deprecated: v6.0.0
* `arrayBuffer` {ArrayBuffer} An [`ArrayBuffer`] or the `.buffer` property of a
* `arrayBuffer` {ArrayBuffer} An [`ArrayBuffer`] or the `.buffer` property of a
[`TypedArray`].
[`TypedArray`].
* `byteOffset` {I nteger} Index of first byte to expose. **Default:** `0`
* `byteOffset` {i nteger} Index of first byte to expose. **Default:** `0`
* `length` {I nteger} Number of bytes to expose.
* `length` {i nteger} Number of bytes to expose.
**Default:** `arrayBuffer.length - byteOffset`
**Default:** `arrayBuffer.length - byteOffset`
This creates a view of the [`ArrayBuffer`] without copying the underlying
This creates a view of the [`ArrayBuffer`] without copying the underlying
@ -391,7 +391,7 @@ deprecated: v6.0.0
> Stability: 0 - Deprecated: Use [`Buffer.alloc()`] instead (also see
> Stability: 0 - Deprecated: Use [`Buffer.alloc()`] instead (also see
> [`Buffer.allocUnsafe()`]).
> [`Buffer.allocUnsafe()`]).
* `size` {I nteger} The desired length of the new `Buffer`
* `size` {i nteger} The desired length of the new `Buffer`
Allocates a new `Buffer` of `size` bytes. The `size` must be less than or equal
Allocates a new `Buffer` of `size` bytes. The `size` must be less than or equal
to the value of [`buffer.kMaxLength`]. Otherwise, a [`RangeError`] is thrown.
to the value of [`buffer.kMaxLength`]. Otherwise, a [`RangeError`] is thrown.
@ -453,8 +453,8 @@ console.log(buf2.toString());
added: v5.10.0
added: v5.10.0
-->
-->
* `size` {I nteger} The desired length of the new `Buffer`
* `size` {i nteger} The desired length of the new `Buffer`
* `fill` {string | Buffer | I nteger} A value to pre-fill the new `Buffer` with.
* `fill` {string|Buffer|i nteger} A value to pre-fill the new `Buffer` with.
**Default:** `0`
**Default:** `0`
* `encoding` {string} If `fill` is a string, this is its encoding.
* `encoding` {string} If `fill` is a string, this is its encoding.
**Default:** `'utf8'`
**Default:** `'utf8'`
@ -510,7 +510,7 @@ A `TypeError` will be thrown if `size` is not a number.
added: v5.10.0
added: v5.10.0
-->
-->
* `size` {I nteger} The desired length of the new `Buffer`
* `size` {i nteger} The desired length of the new `Buffer`
Allocates a new *non-zero-filled* `Buffer` of `size` bytes. The `size` must
Allocates a new *non-zero-filled* `Buffer` of `size` bytes. The `size` must
be less than or equal to the value of [`buffer.kMaxLength`]. Otherwise, a
be less than or equal to the value of [`buffer.kMaxLength`]. Otherwise, a
@ -556,7 +556,7 @@ additional performance that [`Buffer.allocUnsafe()`] provides.
added: v5.10.0
added: v5.10.0
-->
-->
* `size` {I nteger} The desired length of the new `Buffer`
* `size` {i nteger} The desired length of the new `Buffer`
Allocates a new *non-zero-filled* and non-pooled `Buffer` of `size` bytes. The
Allocates a new *non-zero-filled* and non-pooled `Buffer` of `size` bytes. The
`size` must be less than or equal to the value of [`buffer.kMaxLength`].
`size` must be less than or equal to the value of [`buffer.kMaxLength`].
@ -609,11 +609,11 @@ A `TypeError` will be thrown if `size` is not a number.
added: v0.1.90
added: v0.1.90
-->
-->
* `string` {string | Buffer | TypedArray | DataView | ArrayBuffer} A value to
* `string` {string|Buffer|TypedArray|DataView|ArrayBuffer} A value to
calculate the length of
calculate the length of
* `encoding` {string} If `string` is a string, this is its encoding.
* `encoding` {string} If `string` is a string, this is its encoding.
**Default:** `'utf8'`
**Default:** `'utf8'`
* Returns: {I nteger} The number of bytes contained within `string`
* Returns: {i nteger} The number of bytes contained within `string`
Returns the actual byte length of a string. This is not the same as
Returns the actual byte length of a string. This is not the same as
[`String.prototype.length`] since that returns the number of *characters* in
[`String.prototype.length`] since that returns the number of *characters* in
@ -645,7 +645,7 @@ added: v0.11.13
* `buf1` {Buffer}
* `buf1` {Buffer}
* `buf2` {Buffer}
* `buf2` {Buffer}
* Returns: {I nteger}
* Returns: {i nteger}
Compares `buf1` to `buf2` typically for the purpose of sorting arrays of
Compares `buf1` to `buf2` typically for the purpose of sorting arrays of
`Buffer` instances. This is equivalent to calling
`Buffer` instances. This is equivalent to calling
@ -669,7 +669,7 @@ added: v0.7.11
-->
-->
* `list` {Array} List of `Buffer` instances to concat
* `list` {Array} List of `Buffer` instances to concat
* `totalLength` {I nteger} Total length of the `Buffer` instances in `list`
* `totalLength` {i nteger} Total length of the `Buffer` instances in `list`
when concatenated
when concatenated
* Returns: {Buffer}
* Returns: {Buffer}
@ -729,8 +729,8 @@ added: v5.10.0
* `arrayBuffer` {ArrayBuffer} An [`ArrayBuffer`] or the `.buffer` property of a
* `arrayBuffer` {ArrayBuffer} An [`ArrayBuffer`] or the `.buffer` property of a
[`TypedArray`].
[`TypedArray`].
* `byteOffset` {I nteger} Index of first byte to expose. **Default:** `0`
* `byteOffset` {i nteger} Index of first byte to expose. **Default:** `0`
* `length` {I nteger} Number of bytes to expose.
* `length` {i nteger} Number of bytes to expose.
**Default:** `arrayBuffer.length - byteOffset`
**Default:** `arrayBuffer.length - byteOffset`
This creates a view of the [`ArrayBuffer`] without copying the underlying
This creates a view of the [`ArrayBuffer`] without copying the underlying
@ -837,7 +837,7 @@ added: v0.1.101
-->
-->
* `obj` {Object}
* `obj` {Object}
* Returns: {B oolean}
* Returns: {b oolean}
Returns `true` if `obj` is a `Buffer` , `false` otherwise.
Returns `true` if `obj` is a `Buffer` , `false` otherwise.
@ -847,7 +847,7 @@ added: v0.9.1
-->
-->
* `encoding` {string} A character encoding name to check
* `encoding` {string} A character encoding name to check
* Returns: {B oolean}
* Returns: {b oolean}
Returns `true` if `encoding` contains a supported character encoding, or `false`
Returns `true` if `encoding` contains a supported character encoding, or `false`
otherwise.
otherwise.
@ -857,7 +857,7 @@ otherwise.
added: v0.11.3
added: v0.11.3
-->
-->
* {I nteger} **Default:** `8192`
* {i nteger} **Default:** `8192`
This is the number of bytes used to determine the size of pre-allocated, internal
This is the number of bytes used to determine the size of pre-allocated, internal
`Buffer` instances used for pooling. This value may be modified.
`Buffer` instances used for pooling. This value may be modified.
@ -896,17 +896,17 @@ added: v0.11.13
-->
-->
* `target` {Buffer} A `Buffer` to compare to
* `target` {Buffer} A `Buffer` to compare to
* `targetStart` {I nteger} The offset within `target` at which to begin
* `targetStart` {i nteger} The offset within `target` at which to begin
comparison. **Default:** `0`
comparison. **Default:** `0`
* `targetEnd` {I nteger} The offset with `target` at which to end comparison
* `targetEnd` {i nteger} The offset with `target` at which to end comparison
(not inclusive). Ignored when `targetStart` is `undefined` .
(not inclusive). Ignored when `targetStart` is `undefined` .
**Default:** `target.length`
**Default:** `target.length`
* `sourceStart` {I nteger} The offset within `buf` at which to begin comparison.
* `sourceStart` {i nteger} The offset within `buf` at which to begin comparison.
Ignored when `targetStart` is `undefined` . **Default:** `0`
Ignored when `targetStart` is `undefined` . **Default:** `0`
* `sourceEnd` {I nteger} The offset within `buf` at which to end comparison
* `sourceEnd` {i nteger} The offset within `buf` at which to end comparison
(not inclusive). Ignored when `targetStart` is `undefined` .
(not inclusive). Ignored when `targetStart` is `undefined` .
**Default:** [`buf.length`]
**Default:** [`buf.length`]
* Returns: {I nteger}
* Returns: {i nteger}
Compares `buf` with `target` and returns a number indicating whether `buf`
Compares `buf` with `target` and returns a number indicating whether `buf`
comes before, after, or is the same as `target` in sort order.
comes before, after, or is the same as `target` in sort order.
@ -972,13 +972,13 @@ added: v0.1.90
-->
-->
* `target` {Buffer|Uint8Array} A `Buffer` or [`Uint8Array`] to copy into.
* `target` {Buffer|Uint8Array} A `Buffer` or [`Uint8Array`] to copy into.
* `targetStart` {I nteger} The offset within `target` at which to begin
* `targetStart` {i nteger} The offset within `target` at which to begin
copying to. **Default:** `0`
copying to. **Default:** `0`
* `sourceStart` {I nteger} The offset within `buf` at which to begin copying from.
* `sourceStart` {i nteger} The offset within `buf` at which to begin copying from.
Ignored when `targetStart` is `undefined` . **Default:** `0`
Ignored when `targetStart` is `undefined` . **Default:** `0`
* `sourceEnd` {I nteger} The offset within `buf` at which to stop copying (not
* `sourceEnd` {i nteger} The offset within `buf` at which to stop copying (not
inclusive). Ignored when `sourceStart` is `undefined` . **Default:** [`buf.length`]
inclusive). Ignored when `sourceStart` is `undefined` . **Default:** [`buf.length`]
* Returns: {I nteger} The number of bytes copied.
* Returns: {i nteger} The number of bytes copied.
Copies data from a region of `buf` to a region in `target` even if the `target`
Copies data from a region of `buf` to a region in `target` even if the `target`
memory region overlaps with `buf` .
memory region overlaps with `buf` .
@ -1051,7 +1051,7 @@ added: v0.11.13
-->
-->
* `otherBuffer` {Buffer} A `Buffer` to compare to
* `otherBuffer` {Buffer} A `Buffer` to compare to
* Returns: {B oolean}
* Returns: {b oolean}
Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,
Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,
`false` otherwise.
`false` otherwise.
@ -1075,9 +1075,9 @@ console.log(buf1.equals(buf3));
added: v0.5.0
added: v0.5.0
-->
-->
* `value` {string | Buffer | I nteger} The value to fill `buf` with
* `value` {string|Buffer|i nteger} The value to fill `buf` with
* `offset` {I nteger} Where to start filling `buf` . **Default:** `0`
* `offset` {i nteger} Where to start filling `buf` . **Default:** `0`
* `end` {I nteger} Where to stop filling `buf` (not inclusive). **Default:** [`buf.length`]
* `end` {i nteger} Where to stop filling `buf` (not inclusive). **Default:** [`buf.length`]
* `encoding` {string} If `value` is a string, this is its encoding.
* `encoding` {string} If `value` is a string, this is its encoding.
**Default:** `'utf8'`
**Default:** `'utf8'`
* Returns: {Buffer} A reference to `buf`
* Returns: {Buffer} A reference to `buf`
@ -1112,11 +1112,11 @@ console.log(Buffer.allocUnsafe(3).fill('\u0222'));
added: v5.3.0
added: v5.3.0
-->
-->
* `value` {string | Buffer | I nteger} What to search for
* `value` {string|Buffer|i nteger} What to search for
* `byteOffset` {I nteger} Where to begin searching in `buf` . **Default:** `0`
* `byteOffset` {i nteger} Where to begin searching in `buf` . **Default:** `0`
* `encoding` {string} If `value` is a string, this is its encoding.
* `encoding` {string} If `value` is a string, this is its encoding.
**Default:** `'utf8'`
**Default:** `'utf8'`
* Returns: {B oolean} `true` if `value` was found in `buf` , `false` otherwise
* Returns: {b oolean} `true` if `value` was found in `buf` , `false` otherwise
Equivalent to [`buf.indexOf() !== -1`][`buf.indexOf()`].
Equivalent to [`buf.indexOf() !== -1`][`buf.indexOf()`].
@ -1153,11 +1153,11 @@ console.log(buf.includes('this', 4));
added: v1.5.0
added: v1.5.0
-->
-->
* `value` {String | Buffer | I nteger} What to search for
* `value` {string | Buffer | i nteger} What to search for
* `byteOffset` {I nteger} Where to begin searching in `buf` . **Default:** `0`
* `byteOffset` {i nteger} Where to begin searching in `buf` . **Default:** `0`
* `encoding` {string} If `value` is a string, this is its encoding.
* `encoding` {string} If `value` is a string, this is its encoding.
**Default:** `'utf8'`
**Default:** `'utf8'`
* Returns: {I nteger} The index of the first occurrence of `value` in `buf` or `-1`
* Returns: {i nteger} The index of the first occurrence of `value` in `buf` or `-1`
if `buf` does not contain `value`
if `buf` does not contain `value`
If `value` is:
If `value` is:
@ -1299,12 +1299,12 @@ for (const key of buf.keys()) {
added: v6.0.0
added: v6.0.0
-->
-->
* `value` {String | Buffer | I nteger} What to search for
* `value` {string | Buffer | i nteger} What to search for
* `byteOffset` {I nteger} Where to begin searching in `buf` .
* `byteOffset` {i nteger} Where to begin searching in `buf` .
**Default:** [`buf.length`]` - 1`
**Default:** [`buf.length`]` - 1`
* `encoding` {string} If `value` is a string, this is its encoding.
* `encoding` {string} If `value` is a string, this is its encoding.
**Default:** `'utf8'`
**Default:** `'utf8'`
* Returns: {I nteger} The index of the last occurrence of `value` in `buf` or `-1`
* Returns: {i nteger} The index of the last occurrence of `value` in `buf` or `-1`
if `buf` does not contain `value`
if `buf` does not contain `value`
Identical to [`buf.indexOf()`], except `buf` is searched from back to front
Identical to [`buf.indexOf()`], except `buf` is searched from back to front
@ -1379,7 +1379,7 @@ console.log(b.lastIndexOf('b', []));
added: v0.1.90
added: v0.1.90
-->
-->
* {I nteger}
* {i nteger}
Returns the amount of memory allocated for `buf` in bytes. Note that this
Returns the amount of memory allocated for `buf` in bytes. Note that this
does not necessarily reflect the amount of "usable" data within `buf` .
does not necessarily reflect the amount of "usable" data within `buf` .
@ -1425,9 +1425,9 @@ console.log(buf.length);
added: v0.11.15
added: v0.11.15
-->
-->
* `offset` {I nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 8`
* `offset` {i nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 8`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {N umber}
* Returns: {n umber}
Reads a 64-bit double from `buf` at the specified `offset` with specified
Reads a 64-bit double from `buf` at the specified `offset` with specified
endian format (`readDoubleBE()` returns big endian, `readDoubleLE()` returns
endian format (`readDoubleBE()` returns big endian, `readDoubleLE()` returns
@ -1461,9 +1461,9 @@ console.log(buf.readDoubleLE(1, true));
added: v0.11.15
added: v0.11.15
-->
-->
* `offset` {I nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 4`
* `offset` {i nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {N umber}
* Returns: {n umber}
Reads a 32-bit float from `buf` at the specified `offset` with specified
Reads a 32-bit float from `buf` at the specified `offset` with specified
endian format (`readFloatBE()` returns big endian, `readFloatLE()` returns
endian format (`readFloatBE()` returns big endian, `readFloatLE()` returns
@ -1496,9 +1496,9 @@ console.log(buf.readFloatLE(1, true));
added: v0.5.0
added: v0.5.0
-->
-->
* `offset` {I nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 1`
* `offset` {i nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 1`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {I nteger}
* Returns: {i nteger}
Reads a signed 8-bit integer from `buf` at the specified `offset` .
Reads a signed 8-bit integer from `buf` at the specified `offset` .
@ -1528,9 +1528,9 @@ console.log(buf.readInt8(2));
added: v0.5.5
added: v0.5.5
-->
-->
* `offset` {I nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 2`
* `offset` {i nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 2`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {I nteger}
* Returns: {i nteger}
Reads a signed 16-bit integer from `buf` at the specified `offset` with
Reads a signed 16-bit integer from `buf` at the specified `offset` with
the specified endian format (`readInt16BE()` returns big endian,
the specified endian format (`readInt16BE()` returns big endian,
@ -1562,9 +1562,9 @@ console.log(buf.readInt16LE(1));
added: v0.5.5
added: v0.5.5
-->
-->
* `offset` {I nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 4`
* `offset` {i nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {I nteger}
* Returns: {i nteger}
Reads a signed 32-bit integer from `buf` at the specified `offset` with
Reads a signed 32-bit integer from `buf` at the specified `offset` with
the specified endian format (`readInt32BE()` returns big endian,
the specified endian format (`readInt32BE()` returns big endian,
@ -1596,10 +1596,10 @@ console.log(buf.readInt32LE(1));
added: v0.11.15
added: v0.11.15
-->
-->
* `offset` {I nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `offset` {i nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `byteLength` {I nteger} How many bytes to read. Must satisfy: `0 < byteLength <= 6`
* `byteLength` {i nteger} How many bytes to read. Must satisfy: `0 < byteLength <= 6`
* `noAssert` {boolean} Skip `offset` and `byteLength` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` and `byteLength` validation? **Default:** `false`
* Returns: {I nteger}
* Returns: {i nteger}
Reads `byteLength` number of bytes from `buf` at the specified `offset`
Reads `byteLength` number of bytes from `buf` at the specified `offset`
and interprets the result as a two's complement signed value. Supports up to 48
and interprets the result as a two's complement signed value. Supports up to 48
@ -1628,9 +1628,9 @@ console.log(buf.readIntBE(1, 6).toString(16));
added: v0.5.0
added: v0.5.0
-->
-->
* `offset` {I nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 1`
* `offset` {i nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 1`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {I nteger}
* Returns: {i nteger}
Reads an unsigned 8-bit integer from `buf` at the specified `offset` .
Reads an unsigned 8-bit integer from `buf` at the specified `offset` .
@ -1658,9 +1658,9 @@ console.log(buf.readUInt8(2));
added: v0.5.5
added: v0.5.5
-->
-->
* `offset` {I nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 2`
* `offset` {i nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 2`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {I nteger}
* Returns: {i nteger}
Reads an unsigned 16-bit integer from `buf` at the specified `offset` with
Reads an unsigned 16-bit integer from `buf` at the specified `offset` with
specified endian format (`readUInt16BE()` returns big endian, `readUInt16LE()`
specified endian format (`readUInt16BE()` returns big endian, `readUInt16LE()`
@ -1696,9 +1696,9 @@ console.log(buf.readUInt16LE(2).toString(16));
added: v0.5.5
added: v0.5.5
-->
-->
* `offset` {I nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 4`
* `offset` {i nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {I nteger}
* Returns: {i nteger}
Reads an unsigned 32-bit integer from `buf` at the specified `offset` with
Reads an unsigned 32-bit integer from `buf` at the specified `offset` with
specified endian format (`readUInt32BE()` returns big endian,
specified endian format (`readUInt32BE()` returns big endian,
@ -1728,10 +1728,10 @@ console.log(buf.readUInt32LE(1).toString(16));
added: v0.11.15
added: v0.11.15
-->
-->
* `offset` {I nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `offset` {i nteger} Where to start reading. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `byteLength` {I nteger} How many bytes to read. Must satisfy: `0 < byteLength <= 6`
* `byteLength` {i nteger} How many bytes to read. Must satisfy: `0 < byteLength <= 6`
* `noAssert` {boolean} Skip `offset` and `byteLength` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` and `byteLength` validation? **Default:** `false`
* Returns: {I nteger}
* Returns: {i nteger}
Reads `byteLength` number of bytes from `buf` at the specified `offset`
Reads `byteLength` number of bytes from `buf` at the specified `offset`
and interprets the result as an unsigned integer. Supports up to 48
and interprets the result as an unsigned integer. Supports up to 48
@ -1760,8 +1760,8 @@ console.log(buf.readUIntBE(1, 6).toString(16));
added: v0.3.0
added: v0.3.0
-->
-->
* `start` {I nteger} Where the new `Buffer` will start. **Default:** `0`
* `start` {i nteger} Where the new `Buffer` will start. **Default:** `0`
* `end` {I nteger} Where the new `Buffer` will end (not inclusive).
* `end` {i nteger} Where the new `Buffer` will end (not inclusive).
**Default:** [`buf.length`]
**Default:** [`buf.length`]
* Returns: {Buffer}
* Returns: {Buffer}
@ -1913,10 +1913,10 @@ added: v0.1.90
-->
-->
* `encoding` {string} The character encoding to decode to. **Default:** `'utf8'`
* `encoding` {string} The character encoding to decode to. **Default:** `'utf8'`
* `start` {I nteger} The byte offset to start decoding at. **Default:** `0`
* `start` {i nteger} The byte offset to start decoding at. **Default:** `0`
* `end` {I nteger} The byte offset to stop decoding at (not inclusive).
* `end` {i nteger} The byte offset to stop decoding at (not inclusive).
**Default:** [`buf.length`]
**Default:** [`buf.length`]
* Returns: {S tring}
* Returns: {s tring}
Decodes `buf` to a string according to the specified character encoding in
Decodes `buf` to a string according to the specified character encoding in
`encoding` . `start` and `end` may be passed to decode only a subset of `buf` .
`encoding` . `start` and `end` may be passed to decode only a subset of `buf` .
@ -2023,10 +2023,10 @@ added: v0.1.90
-->
-->
* `string` {string} String to be written to `buf`
* `string` {string} String to be written to `buf`
* `offset` {I nteger} Where to start writing `string` . **Default:** `0`
* `offset` {i nteger} Where to start writing `string` . **Default:** `0`
* `length` {I nteger} How many bytes to write. **Default:** `buf.length - offset`
* `length` {i nteger} How many bytes to write. **Default:** `buf.length - offset`
* `encoding` {string} The character encoding of `string` . **Default:** `'utf8'`
* `encoding` {string} The character encoding of `string` . **Default:** `'utf8'`
* Returns: {I nteger} Number of bytes written
* Returns: {i nteger} Number of bytes written
Writes `string` to `buf` at `offset` according to the character encoding in `encoding` .
Writes `string` to `buf` at `offset` according to the character encoding in `encoding` .
The `length` parameter is the number of bytes to write. If `buf` did not contain
The `length` parameter is the number of bytes to write. If `buf` did not contain
@ -2051,9 +2051,9 @@ added: v0.11.15
-->
-->
* `value` {number} Number to be written to `buf`
* `value` {number} Number to be written to `buf`
* `offset` {I nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 8`
* `offset` {i nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 8`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {I nteger} `offset` plus the number of bytes written
* Returns: {i nteger} `offset` plus the number of bytes written
Writes `value` to `buf` at the specified `offset` with specified endian
Writes `value` to `buf` at the specified `offset` with specified endian
format (`writeDoubleBE()` writes big endian, `writeDoubleLE()` writes little
format (`writeDoubleBE()` writes big endian, `writeDoubleLE()` writes little
@ -2086,9 +2086,9 @@ added: v0.11.15
-->
-->
* `value` {number} Number to be written to `buf`
* `value` {number} Number to be written to `buf`
* `offset` {I nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 4`
* `offset` {i nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {I nteger} `offset` plus the number of bytes written
* Returns: {i nteger} `offset` plus the number of bytes written
Writes `value` to `buf` at the specified `offset` with specified endian
Writes `value` to `buf` at the specified `offset` with specified endian
format (`writeFloatBE()` writes big endian, `writeFloatLE()` writes little
format (`writeFloatBE()` writes big endian, `writeFloatLE()` writes little
@ -2119,10 +2119,10 @@ console.log(buf);
added: v0.5.0
added: v0.5.0
-->
-->
* `value` {I nteger} Number to be written to `buf`
* `value` {i nteger} Number to be written to `buf`
* `offset` {I nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 1`
* `offset` {i nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 1`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {I nteger} `offset` plus the number of bytes written
* Returns: {i nteger} `offset` plus the number of bytes written
Writes `value` to `buf` at the specified `offset` . `value` *should* be a valid
Writes `value` to `buf` at the specified `offset` . `value` *should* be a valid
signed 8-bit integer. Behavior is undefined when `value` is anything other than
signed 8-bit integer. Behavior is undefined when `value` is anything other than
@ -2151,10 +2151,10 @@ console.log(buf);
added: v0.5.5
added: v0.5.5
-->
-->
* `value` {I nteger} Number to be written to `buf`
* `value` {i nteger} Number to be written to `buf`
* `offset` {I nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 2`
* `offset` {i nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 2`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {I nteger} `offset` plus the number of bytes written
* Returns: {i nteger} `offset` plus the number of bytes written
Writes `value` to `buf` at the specified `offset` with specified endian
Writes `value` to `buf` at the specified `offset` with specified endian
format (`writeInt16BE()` writes big endian, `writeInt16LE()` writes little
format (`writeInt16BE()` writes big endian, `writeInt16LE()` writes little
@ -2184,10 +2184,10 @@ console.log(buf);
added: v0.5.5
added: v0.5.5
-->
-->
* `value` {I nteger} Number to be written to `buf`
* `value` {i nteger} Number to be written to `buf`
* `offset` {I nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 4`
* `offset` {i nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {I nteger} `offset` plus the number of bytes written
* Returns: {i nteger} `offset` plus the number of bytes written
Writes `value` to `buf` at the specified `offset` with specified endian
Writes `value` to `buf` at the specified `offset` with specified endian
format (`writeInt32BE()` writes big endian, `writeInt32LE()` writes little
format (`writeInt32BE()` writes big endian, `writeInt32LE()` writes little
@ -2217,12 +2217,12 @@ console.log(buf);
added: v0.11.15
added: v0.11.15
-->
-->
* `value` {I nteger} Number to be written to `buf`
* `value` {i nteger} Number to be written to `buf`
* `offset` {I nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `offset` {i nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `byteLength` {I nteger} How many bytes to write. Must satisfy: `0 < byteLength <= 6`
* `byteLength` {i nteger} How many bytes to write. Must satisfy: `0 < byteLength <= 6`
* `noAssert` {boolean} Skip `value` , `offset` , and `byteLength` validation?
* `noAssert` {boolean} Skip `value` , `offset` , and `byteLength` validation?
**Default:** `false`
**Default:** `false`
* Returns: {I nteger} `offset` plus the number of bytes written
* Returns: {i nteger} `offset` plus the number of bytes written
Writes `byteLength` bytes of `value` to `buf` at the specified `offset` .
Writes `byteLength` bytes of `value` to `buf` at the specified `offset` .
Supports up to 48 bits of accuracy. Behavior is undefined when `value` is
Supports up to 48 bits of accuracy. Behavior is undefined when `value` is
@ -2252,10 +2252,10 @@ console.log(buf);
added: v0.5.0
added: v0.5.0
-->
-->
* `value` {I nteger} Number to be written to `buf`
* `value` {i nteger} Number to be written to `buf`
* `offset` {I nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 1`
* `offset` {i nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 1`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {I nteger} `offset` plus the number of bytes written
* Returns: {i nteger} `offset` plus the number of bytes written
Writes `value` to `buf` at the specified `offset` . `value` *should* be a
Writes `value` to `buf` at the specified `offset` . `value` *should* be a
valid unsigned 8-bit integer. Behavior is undefined when `value` is anything
valid unsigned 8-bit integer. Behavior is undefined when `value` is anything
@ -2284,10 +2284,10 @@ console.log(buf);
added: v0.5.5
added: v0.5.5
-->
-->
* `value` {I nteger} Number to be written to `buf`
* `value` {i nteger} Number to be written to `buf`
* `offset` {I nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 2`
* `offset` {i nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 2`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {I nteger} `offset` plus the number of bytes written
* Returns: {i nteger} `offset` plus the number of bytes written
Writes `value` to `buf` at the specified `offset` with specified endian
Writes `value` to `buf` at the specified `offset` with specified endian
format (`writeUInt16BE()` writes big endian, `writeUInt16LE()` writes little
format (`writeUInt16BE()` writes big endian, `writeUInt16LE()` writes little
@ -2321,10 +2321,10 @@ console.log(buf);
added: v0.5.5
added: v0.5.5
-->
-->
* `value` {I nteger} Number to be written to `buf`
* `value` {i nteger} Number to be written to `buf`
* `offset` {I nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 4`
* `offset` {i nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {I nteger} `offset` plus the number of bytes written
* Returns: {i nteger} `offset` plus the number of bytes written
Writes `value` to `buf` at the specified `offset` with specified endian
Writes `value` to `buf` at the specified `offset` with specified endian
format (`writeUInt32BE()` writes big endian, `writeUInt32LE()` writes little
format (`writeUInt32BE()` writes big endian, `writeUInt32LE()` writes little
@ -2356,12 +2356,12 @@ console.log(buf);
added: v0.5.5
added: v0.5.5
-->
-->
* `value` {I nteger} Number to be written to `buf`
* `value` {i nteger} Number to be written to `buf`
* `offset` {I nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `offset` {i nteger} Where to start writing. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `byteLength` {I nteger} How many bytes to write. Must satisfy: `0 < byteLength <= 6`
* `byteLength` {i nteger} How many bytes to write. Must satisfy: `0 < byteLength <= 6`
* `noAssert` {boolean} Skip `value` , `offset` , and `byteLength` validation?
* `noAssert` {boolean} Skip `value` , `offset` , and `byteLength` validation?
**Default:** `false`
**Default:** `false`
* Returns: {I nteger} `offset` plus the number of bytes written
* Returns: {i nteger} `offset` plus the number of bytes written
Writes `byteLength` bytes of `value` to `buf` at the specified `offset` .
Writes `byteLength` bytes of `value` to `buf` at the specified `offset` .
Supports up to 48 bits of accuracy. Behavior is undefined when `value` is
Supports up to 48 bits of accuracy. Behavior is undefined when `value` is
@ -2391,7 +2391,7 @@ console.log(buf);
added: v0.5.4
added: v0.5.4
-->
-->
* {I nteger} **Default:** `50`
* {i nteger} **Default:** `50`
Returns the maximum number of bytes that will be returned when
Returns the maximum number of bytes that will be returned when
`buf.inspect()` is called. This can be overridden by user modules. See
`buf.inspect()` is called. This can be overridden by user modules. See
@ -2405,7 +2405,7 @@ Note that this is a property on the `buffer` module as returned by
added: v3.0.0
added: v3.0.0
-->
-->
* {I nteger} The largest size allowed for a single `Buffer` instance
* {i nteger} The largest size allowed for a single `Buffer` instance
On 32-bit architectures, this value is `(2^30)-1` (~1GB).
On 32-bit architectures, this value is `(2^30)-1` (~1GB).
On 64-bit architectures, this value is `(2^31)-1` (~2GB).
On 64-bit architectures, this value is `(2^31)-1` (~2GB).
@ -2457,7 +2457,7 @@ deprecated: v6.0.0
> Stability: 0 - Deprecated: Use [`Buffer.allocUnsafeSlow()`] instead.
> Stability: 0 - Deprecated: Use [`Buffer.allocUnsafeSlow()`] instead.
* `size` {I nteger} The desired length of the new `SlowBuffer`
* `size` {i nteger} The desired length of the new `SlowBuffer`
Allocates a new `SlowBuffer` of `size` bytes. The `size` must be less than
Allocates a new `SlowBuffer` of `size` bytes. The `size` must be less than
or equal to the value of [`buffer.kMaxLength`]. Otherwise, a [`RangeError`] is
or equal to the value of [`buffer.kMaxLength`]. Otherwise, a [`RangeError`] is