//In this example, we create a 8-byte buffer with a Int32Array view referring to the buffer:
const buffer = new ArrayBuffer(8);
const view = new Int32Array(buffer);
//To create a buffer, use Buffer.from();
//To learn more about what buffers are, check out this link: https://nodejs.org/en/knowledge/advanced/buffers/how-to-use-buffers/
/* Example: */
var buf = Buffer.from([anything that is a str or num], [encoding (string)]);
//To read a buffer, do this
var toString = buf.toString([encoding])
// if the buffers contain text
buffer.toString(encoding) // encoding = 'utf-8'
// if you know how many bytes the buffer contains then
buffer.toString(encoding, 0, numberOfBytes) // numberOfBytes = 12
const Stream = require('stream')
const readableStream = new Stream.Readable()
const writableStream = new Stream.Writable()