{"json_modified": "2016-07-17T16:15:01.091154", "uuid": "34d0bc8b-0c63-403d-a49f-387e466b5e6a", "title": "StringView", "url": "/en-US/docs/Mozilla/Add-ons/Code_snippets/StringView", "tags": ["Code snippet", "MDN JavaScript Libraries", "Sample code", "Guide", "js-ctypes", "WebGL", "JavaScript typed arrays", "JavaScript", "Typed Arrays", "WebSockets"], "translations": [], "modified": "2016-07-17T16:15:00", "label": "StringView", "localization_tags": [], "locale": "en-US", "id": 77877, "last_edit": "2016-07-17T16:14:54", "summary": "As web applications become more and more powerful, adding features such as audio and video manipulation, access to raw data using WebSockets, and so forth, it has become clear that there are times when it would be helpful for JavaScript code to be able to quickly and easily manipulate raw binary data. In the past, this had to be simulated by treating the raw data as a string and using the charCodeAt()
method to read the bytes from the data buffer.", "sections": [{"id": "The_aims_of_this_library_are", "title": "The aims of this library are:"}, {"id": "Introduction", "title": "Introduction"}, {"id": "The_code", "title": "The code"}, {"id": "Manual", "title": "Manual"}, {"id": "Methods_overview", "title": "Methods overview"}, {"id": "Properties_overview", "title": "Properties overview"}, {"id": "Constructor", "title": "Constructor"}, {"id": "Syntax", "title": "Syntax"}, {"id": "Description", "title": "Description"}, {"id": "Arguments", "title": "Arguments"}, {"id": "Examples", "title": "Examples"}, {"id": "StringView_constructor's_methods", "title": null}, {"id": "StringView_instances'_properties", "title": null}, {"id": "StringView_instances'_methods", "title": null}, {"id": "Appendix_other_StringView_constructor's_methods_(utilities)", "title": "Appendix: other "}, {"id": "Advanced_examples", "title": "Advanced examples"}, {"id": "Edit_an_ASCII_part_contained_within_a_binary_file", "title": "Edit an ASCII part contained within a binary file"}, {"id": "Glossary", "title": "Glossary"}, {"id": "Notes", "title": "Notes"}, {"id": "See_also", "title": "See also"}], "slug": "Mozilla/Add-ons/Code_snippets/StringView", "review_tags": []}