buffer icon indicating copy to clipboard operation
buffer copied to clipboard

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

Open xgiovio opened this issue 10 months ago • 0 comments
trafficstars

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?

xgiovio avatar Jan 23 '25 00:01 xgiovio