bytebuffer.js icon indicating copy to clipboard operation
bytebuffer.js copied to clipboard

toArrayBuffer doesnt work

Open philberty opened this issue 9 years ago • 1 comments

buffer.toArrayBuffer(true); fails with:

RangeError: Illegal range: 0 <= 7481 <= 16 <= 8192. Not sure why.

philberty avatar Aug 31 '15 14:08 philberty

Did you call flip before calling toArrayBuffer? https://github.com/dcodeIO/bytebuffer.js/wiki/API#bytebufferflip

hackerwins avatar Sep 18 '17 06:09 hackerwins