What is the proper way to read a number (int) from a binary file? #9652
-
I want to:
I can do the first with Deno.seek, but Deno.read doesn't provide a parameter for how many bytes to read. So how can I do it? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It does, it can only read up to N bytes where the number of bytes is the byteLength of the TypedArray passed in.
If you have any more questions you can find us in the #help channel on Discord https://discord.gg/bpHe9MVB Or if you prefer the forum format, please use the Discussions tab next time for general Q&A as the issue tracker is meant for bugs 👍 |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! |
Beta Was this translation helpful? Give feedback.
-
You can use |
Beta Was this translation helpful? Give feedback.
It does, it can only read up to N bytes where the number of bytes is the byteLength of the TypedArray passed in.
If you have any more questions you can find us in the #help channel on Discord https://discord.gg/bpHe9MVB
Or if you prefer the forum format, please use the Discussions tab next time for general Q&A as the issue tracker is meant for bugs 👍