Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read(..): when writing binary data in a Buffer, it throws ERR_INVALID_ARG_TYPE "TypeError: argument must be a string" #30

Open
metachris opened this issue Jan 15, 2021 · 0 comments

Comments

@metachris
Copy link

https://github.com/fuse-friends/fuse-native/blob/master/example.js#L63

buf.write(slice) with a buffer containing binary data doesn't work. It throws ERR_INVALID_ARG_TYPE "TypeError: argument must be a string"

How would I return binary data? If I just do buf.write(slice.toString()) then the encoding seems incorrect and the hex data received by the terminal is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant