-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Description
Hi,
I'm using the browser flavor of bytebuffer.js (the one based on ArrayBuffers) in an app built on top of Apache Cordova (irrelevant, I believe), which uses Android WebView - basically a Chromium-based embedded browser.
I'm getting a TypeError: Cannot read property 'length' of null
in:
var b = new ByteBuffer(0, ByteBuffer.LITTLE_ENDIAN);
b.ensureCapacity(100); // this throws
My WebView does have support for ArrayBuffer
s and Uint8Array
s. Are there any other requirements? Any ideas?
I'm using:
- bytebuffer 5.0.1 (bytebuffer.js or bytebuffer.min.js as described by https://github.com/dcodeIO/bytebuffer.js/blob/master/dist/README.md)
- Android 5.1.1, Android System WebView 54.0.x
If I try with bytebuffer-dataview.js
, all is fine. The point is that I have limited CPU/RAM resources and tons of binary data to process, so I'm looking into ways how to shave off some seconds in the processing.
/Pawel
Metadata
Metadata
Assignees
Labels
No labels