You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ArrayBuffers and Uint8Arrays. Are there any other requirements? Any ideas?
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
The text was updated successfully, but these errors were encountered:
I just figured out that if I hack around dist/bytebuffer.js:77 and :2507 and let this.view = new Uint8Array(this.buffer); then it works fine for me (see the dirty pawelrychlik@262ee4c and don't pay attention to line endings). Now I guess I need to find my way through MetaScript to fix this properly.
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:My WebView does have support for
ArrayBuffer
s andUint8Array
s. Are there any other requirements? Any ideas?I'm using:
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
The text was updated successfully, but these errors were encountered: