- Source
Classes
Methods
(inner) NewBuffer(call) → {Buffer}
NewBuffer creates a new buffer from a byte slice.
Parameters:
Name | Type | Description |
---|---|---|
call | Uint8Array | The byte slice to create the buffer from. |
- Source
Returns:
- The new buffer created from the byte slice.
- Type:
- Buffer
Example
let m = require('nuclei/bytes');
let buffer = m.NewBuffer(new Uint8Array([1, 2, 3]));