time-to-botec/js/node_modules/@stdlib/buffer/from-buffer/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

24 lines
398 B
Plaintext

{{alias}}( buffer )
Copies buffer data to a new Buffer instance.
Parameters
----------
buffer: Buffer
Buffer to copy from.
Returns
-------
out: Buffer
Buffer instance.
Examples
--------
> var b1 = {{alias:@stdlib/buffer/from-array}}( [ 1, 2, 3, 4 ] );
> var b2 = {{alias}}( b1 )
<Buffer>[ 1, 2, 3, 4 ]
See Also
--------