React Native, unordered_map::at: key not found when passing a Buffer instead of a Uint8Array
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript, react-native
- 领域
- mobile-dev
调研方向
首先在 React Native 中使用 expo fs 或 sqlite 重现该错误,先传入一个 Buffer,再传入一个 Uint8Array。调查为何 Buffer 明明是 Uint8Array 却仍被拒绝;当受影响的函数无需 Uint8Array.from(buffer) 即可接受 Buffer 时,即完成此项工作。
由索引模型根据 Issue 内容生成。
描述
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?
- 主要语言
- JavaScript
- 星标
- 1.9k
- 派生
- 260
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
feross/buffer 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 2/5 1-3 小时 新手友好度 48/100
-
难度 3/5 1-2 天 新手友好度 38/100
-
Why is the code above version 6.0 ES6? This leads to errors running on lower versions of browsers 未关闭
难度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
Issue-Bug
难度 2/5 1-3 小时 新手友好度 68/100
sugarlabs/musicblocks#8924 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled 未关闭customer-eng status: needs triage
难度 2/5 1-3 小时 新手友好度 84/100