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.
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