I have an ArrayBuffer
, and I want to get two separate Uint8Array
copies from it. I attempt this by using the Uint8Array
constructor on the ArrayBuffer
twice. The constructed array instances do not equal. Yet, when you alter one, it alters the other in the same way. How is this possible, and why would this be the case?
On the other hand, if you construct new Uint8Array
s from the constructed Uint8Array
, they will be functionally separated as one would expect.