charCodeAt() method to read the bytes from the data buffer.
However, this is slow and error-prone, due to the need for multiple conversions (especially if the binary data is not actually byte-format data, but, for example, 32-bit integers or floats).
StringView Non native constructor is one level above typed arrays and provides a C-like interface for strings.
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.