Classes

Buffer

Methods

(inner) NewBuffer(call) → {Buffer}

NewBuffer creates a new buffer from a byte slice.
Parameters:
NameTypeDescription
callUint8ArrayThe byte slice to create the buffer from.
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]));