Skip to content

Conversation

pranavkaruvally
Copy link

Closes #27

In big endian machines the memory is represented in reverse byte order in comparison to little endian machines.
So, when calling TypedArray.prototype.buffer an UInt16Array the underlying UInt8Array will be having [04, d2, 02, 00] as 1234 will be 04d2 and 512 will be 0200. And then writing this to string will will make it 04d20200.

@kathleenmotley49-maker
Copy link

Good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Different behavior on Endianness platforms
2 participants