ts-proto icon indicating copy to clipboard operation
ts-proto copied to clipboard

Solution for streaming to a file?

Open td-krzysiek opened this issue 1 year ago • 1 comments

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

td-krzysiek avatar Sep 06 '24 07:09 td-krzysiek

Hi @td-krzysiek !

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

stephenh avatar Sep 08 '24 02:09 stephenh