I'm trying to convert a node Buffer to a Uint8ClampedArray, but I want to discard the first 8 bytes. I tried like this:
buf = new Buffer([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]);
arr = new Uint8ClampedArray(buf, 8, 8);
But it appears as though the offset is ignored, arr contains all of buf.
How can I convert buf to an array beginning at an offset of n bytes?