@ -357,8 +357,8 @@ changes:
* `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
@ -438,7 +438,7 @@ changes:
> 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. If the `size` is larger than
Allocates a new `Buffer` of `size` bytes. If the `size` is larger than
[`buffer.kMaxLength`] or smaller than 0, a [`RangeError`] will be thrown.
[`buffer.kMaxLength`] or smaller than 0, a [`RangeError`] will be thrown.
@ -507,8 +507,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'`
@ -568,7 +568,7 @@ changes:
description: Passing a negative `size` will now throw an error.
description: Passing a negative `size` will now throw an error.
-->
-->
* `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. If the `size` is larger than
Allocates a new `Buffer` of `size` bytes. If the `size` is larger than
[`buffer.kMaxLength`] or smaller than 0, a [`RangeError`] will be thrown.
[`buffer.kMaxLength`] or smaller than 0, a [`RangeError`] will be thrown.
@ -614,7 +614,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 `Buffer` of `size` bytes. If the `size` is larger than
Allocates a new `Buffer` of `size` bytes. If the `size` is larger than
[`buffer.kMaxLength`] or smaller than 0, a [`RangeError`] will be thrown.
[`buffer.kMaxLength`] or smaller than 0, a [`RangeError`] will be thrown.
@ -674,11 +674,11 @@ changes:
or `ArrayBuffer` .
or `ArrayBuffer` .
-->
-->
* `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
@ -708,7 +708,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
@ -732,7 +732,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}
@ -792,8 +792,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
@ -900,7 +900,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.
@ -910,7 +910,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.
@ -920,7 +920,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.
@ -959,17 +959,17 @@ changes:
-->
-->
* `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.
@ -1035,13 +1035,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` .
@ -1114,7 +1114,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.
@ -1142,9 +1142,9 @@ changes:
description: The `encoding` parameter is supported now.
description: The `encoding` parameter is supported now.
-->
-->
* `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`
@ -1179,11 +1179,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()`].
@ -1225,11 +1225,11 @@ changes:
is no longer required.
is no longer required.
-->
-->
* `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:
@ -1330,12 +1330,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
@ -1410,7 +1410,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` .
@ -1456,9 +1456,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
@ -1492,9 +1492,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
@ -1527,9 +1527,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` .
@ -1559,9 +1559,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,
@ -1593,9 +1593,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,
@ -1627,10 +1627,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
@ -1659,9 +1659,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` .
@ -1689,9 +1689,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()`
@ -1727,9 +1727,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,
@ -1759,10 +1759,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
@ -1800,8 +1800,8 @@ changes:
calculations with them.
calculations with them.
-->
-->
* `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}
@ -1982,10 +1982,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` .
@ -2063,10 +2063,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
@ -2091,9 +2091,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
@ -2126,9 +2126,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
@ -2159,10 +2159,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
@ -2191,10 +2191,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
@ -2224,10 +2224,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
@ -2257,12 +2257,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
@ -2292,10 +2292,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
@ -2324,10 +2324,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
@ -2361,10 +2361,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
@ -2396,12 +2396,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
@ -2431,7 +2431,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
@ -2445,7 +2445,7 @@ Note that this is a property on the `buffer` module 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).
@ -2532,7 +2532,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 `Buffer` of `size` bytes. If the `size` is larger than
Allocates a new `Buffer` of `size` bytes. If the `size` is larger than
[`buffer.kMaxLength`] or smaller than 0, a [`RangeError`] will be thrown.
[`buffer.kMaxLength`] or smaller than 0, a [`RangeError`] will be thrown.