I wish to add an array to a buffer at a specific offset. This does not work:
let buffer = Buffer.alloc(65);
buffer.writeUInt8(0x91, 0);
buffer.write([127, 0, 0, 1 ], 1);
buffer.write("admin", 5);
buffer.write("admin", 31);
as it gives me the error:
(node:10468) UnhandledPromiseRejectionWarning: TypeError: argument must be a string