Skip to content

Commit 361535c

Browse files
Create fromArray.md
1 parent be27497 commit 361535c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docs/reference/buffer/fromArray.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## fromArray
2+
Allocates a new buffer from a dynamic array into bytes.
3+
``` sig
4+
Buffer.fromArray([])
5+
```
6+
7+
## Parameters
8+
* **bytes:** the number of bytes converted from a dynamic array
9+
10+
## Example
11+
Set an array that have 5 indices into a buffer.
12+
Buffer.create([0, 1, 2, 3, 4])

0 commit comments

Comments
 (0)