Returns a section of an ArrayBuffer.
slice(begin, end?)
start optional
The beginning byte index of the portion at which to slice.
end optional
The end byte index of the specified portion of the array. This is exclusive of the byte at the index 'end’. If end is undefined, then the slice extends to the end of the array buffer.
If the end is negative, it indicates an offset from the end of array buffer.
A new ArrayBuffer.
var buffer1 = new ArrayBuffer(10)
var buffer2 = buffer1.slice(0, 5)
buffer2.byteLength
5