|
1 | 1 | # Buffer |
2 | 2 |
|
3 | 3 | <!--introduced_in=v0.1.90--> |
4 | | -<!--lint disable maximum-line-length--> |
5 | 4 |
|
6 | 5 | > Stability: 2 - Stable |
7 | 6 |
|
@@ -81,7 +80,7 @@ to one of these new APIs.* |
81 | 80 |
|
82 | 81 | * [`Buffer.from(array)`] returns a new `Buffer` that *contains a copy* of the |
83 | 82 | provided octets. |
84 | | -* [`Buffer.from(arrayBuffer[, byteOffset [, length]])`][`Buffer.from(arrayBuffer)`] |
| 83 | +* [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`] |
85 | 84 | returns a new `Buffer` that *shares the same allocated memory* as the given |
86 | 85 | [`ArrayBuffer`]. |
87 | 86 | * [`Buffer.from(buffer)`] returns a new `Buffer` that *contains a copy* of the |
@@ -273,7 +272,7 @@ function: |
273 | 272 |
|
274 | 273 | * [`Buffer.from(array)`] |
275 | 274 | * [`Buffer.from(buffer)`] |
276 | | -* [`Buffer.from(arrayBuffer[, byteOffset [, length]])`][`Buffer.from(arrayBuffer)`] |
| 275 | +* [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`] |
277 | 276 | * [`Buffer.from(string[, encoding])`][`Buffer.from(string)`] |
278 | 277 |
|
279 | 278 | ## Buffers and iteration |
@@ -348,7 +347,7 @@ changes: |
348 | 347 | --> |
349 | 348 |
|
350 | 349 | > Stability: 0 - Deprecated: Use |
351 | | -> [`Buffer.from(arrayBuffer[, byteOffset [, length]])`][`Buffer.from(arrayBuffer)`] |
| 350 | +> [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`] |
352 | 351 | > instead. |
353 | 352 |
|
354 | 353 | * `arrayBuffer` {ArrayBuffer|SharedArrayBuffer} An [`ArrayBuffer`], |
@@ -2215,8 +2214,8 @@ changes: |
2215 | 2214 |
|
2216 | 2215 | Writes `value` to `buf` at the specified `offset` with specified endian |
2217 | 2216 | format (`writeInt16BE()` writes big endian, `writeInt16LE()` writes little |
2218 | | -endian). `value` *should* be a valid signed 16-bit integer. Behavior is undefined |
2219 | | -when `value` is anything other than a signed 16-bit integer. |
| 2217 | +endian). `value` *should* be a valid signed 16-bit integer. Behavior is |
| 2218 | +undefined when `value` is anything other than a signed 16-bit integer. |
2220 | 2219 |
|
2221 | 2220 | `value` is interpreted and written as a two's complement signed integer. |
2222 | 2221 |
|
@@ -2248,8 +2247,8 @@ changes: |
2248 | 2247 |
|
2249 | 2248 | Writes `value` to `buf` at the specified `offset` with specified endian |
2250 | 2249 | format (`writeInt32BE()` writes big endian, `writeInt32LE()` writes little |
2251 | | -endian). `value` *should* be a valid signed 32-bit integer. Behavior is undefined |
2252 | | -when `value` is anything other than a signed 32-bit integer. |
| 2250 | +endian). `value` *should* be a valid signed 32-bit integer. Behavior is |
| 2251 | +undefined when `value` is anything other than a signed 32-bit integer. |
2253 | 2252 |
|
2254 | 2253 | `value` is interpreted and written as a two's complement signed integer. |
2255 | 2254 |
|
@@ -2607,7 +2606,7 @@ This value may depend on the JS engine that is being used. |
2607 | 2606 | [`Buffer.allocUnsafe()`]: #buffer_class_method_buffer_allocunsafe_size |
2608 | 2607 | [`Buffer.allocUnsafeSlow()`]: #buffer_class_method_buffer_allocunsafeslow_size |
2609 | 2608 | [`Buffer.from(array)`]: #buffer_class_method_buffer_from_array |
2610 | | -[`Buffer.from(arrayBuffer)`]: #buffer_class_method_buffer_from_arraybuffer_byteoffset_length |
| 2609 | +[`Buffer.from(arrayBuf)`]: #buffer_class_method_buffer_from_arraybuffer_byteoffset_length |
2611 | 2610 | [`Buffer.from(buffer)`]: #buffer_class_method_buffer_from_buffer |
2612 | 2611 | [`Buffer.from(string)`]: #buffer_class_method_buffer_from_string_encoding |
2613 | 2612 | [`Buffer.poolSize`]: #buffer_class_property_buffer_poolsize |
|
0 commit comments