vectorAsBuffer
Initialize vector as a ReadWriteBuffer.
This is more efficient than using duplicate, since it doesn't copy the data nor allocates a new ReadBuffer, creating no garbage to be collected.
Return
The ReadBuffer for the array
Parameters
buffer
The ReadBuffer for the array
vectorOffset
The position of the vector in the byte buffer
elemSize
The size of each element in the array