feross / feross/buffer

React Native, unordered_map::at: key not found when passing a Buffer instead of a Uint8Array

Open
#368 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
260
PR merge metrics
No merged PRs in 30d

Description

Hello,
In react native, for example using expo fs to write a file or sqllite to write to db, i receive this error `[Error: Exception in HostFunction: unordered_map::at: key not found]` when i try to pass a Buffer to these functions.

These functions expect a Uint8Array and not a Buffer but a Buffer should be also an Uint8Array.

Fact is that if I do Uint8Array.from(bufferVariableHere), the error goes away.

Any hint?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.