@stdlib/buffer
Version:
Buffer.
23 lines (16 loc) • 377 B
Plain Text
{{alias}}( arr )
Allocates a buffer using an octet array.
Parameters
----------
arr: Array<integer>
Array (or array-like object) of octets from which to copy.
Returns
-------
out: Buffer
Buffer instance.
Examples
--------
> var buf = {{alias}}( [ 1, 2, 3, 4 ] )
<Buffer>[ 1, 2, 3, 4 ]
See Also
--------