@@ -1530,7 +1530,7 @@ a `Buffer` is that in this case one needs to specify the `byteOffset` correctly:
1530
1530
import { Buffer } from ' buffer' ;
1531
1531
1532
1532
// Create a buffer smaller than `Buffer.poolSize`.
1533
- const nodeBuffer = new Buffer.from ([0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ]);
1533
+ const nodeBuffer = Buffer .from ([0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ]);
1534
1534
1535
1535
// When casting the Node.js Buffer to an Int8Array, use the byteOffset
1536
1536
// to refer only to the part of `nodeBuffer.buffer` that contains the memory
@@ -1542,7 +1542,7 @@ new Int8Array(nodeBuffer.buffer, nodeBuffer.byteOffset, nodeBuffer.length);
1542
1542
const { Buffer } = require (' buffer' );
1543
1543
1544
1544
// Create a buffer smaller than `Buffer.poolSize`.
1545
- const nodeBuffer = new Buffer.from ([0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ]);
1545
+ const nodeBuffer = Buffer .from ([0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ]);
1546
1546
1547
1547
// When casting the Node.js Buffer to an Int8Array, use the byteOffset
1548
1548
// to refer only to the part of `nodeBuffer.buffer` that contains the memory
0 commit comments