bytebuffer.js
bytebuffer.js copied to clipboard
Create ByteBuffer from existing ArrayBuffer?
trafficstars
This is probably a silly question, but how can I initialise a ByteBuffer instance from an existing ArrayBuffer? Thanks
Seems you are looking for: https://github.com/protobufjs/bytebuffer.js/wiki/API#bytebufferwrapbuffer-encoding-littleendian-noassert
Thanks - I tried that but I couldn't get it to work. Let me try again.
For context, I'm trying to parse binary data from a websocket.