Is there a commonly accepted technique for efficiently converting JavaScript strings to ArrayBuffers and vice-versa? Specifically, I’d like to be able to write the contents of an ArrayBuffer to localStorage
and to read it back.
Is there a commonly accepted technique for efficiently converting JavaScript strings to ArrayBuffers and vice-versa? Specifically, I’d like to be able to write the contents of an ArrayBuffer to localStorage
and to read it back.