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

Solution for streaming to a file? #1105

Open
td-krzysiek opened this issue Sep 6, 2024 · 1 comment
Open

Solution for streaming to a file? #1105

td-krzysiek opened this issue Sep 6, 2024 · 1 comment

Comments

@td-krzysiek
Copy link
Contributor

Hello,

We generate relatively large output files using ts-proto, and on some devices, creating the entire output buffer with *.finish() before saving it to a file may cause issues. Is there a solution where BinaryWriter writes directly to an output file stream instead of creating a Uint8Array?

I suppose it might be possible to extend BinaryWriter and implement all the functions myself, but it’s possible that someone else has already done this before.

Kind regards,
Krzysztof

@stephenh
Copy link
Owner

stephenh commented Sep 8, 2024

Hi @td-krzysiek !

@timosaikkonen , per this ask, is it possible (or already exists?) to have a streaming version of BinaryWriter? Thanks!

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

2 participants