Skip to content

bytebuffer.js in Android WebView throws TypeError  #79

@pawelrychlik

Description

@pawelrychlik

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 ArrayBuffers and Uint8Arrays. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions