Open 203Null opened 2 years ago
When the file length exceeds a size of around 16KB. the encoded data does will not increase anymore. The data generated is corrupted and can not be decoded.
The default "highWaterMark" of noFilter is 16384 and it overflowed. Need an option to change it
https://github.com/hildjj/node-cbor/tree/main/packages/cbor#highwatermark
If this needs anything else let me know.
https://github.com/hildjj/node-cbor/tree/main/packages/cbor#highwatermark
If this needs anything else let me know.
Thank you, probably should have checked cbor repo. However I think it might be good to raise a warning when overflow.
I'd take a patch for that, but I'm not sure it's easy to figure out the difference when you're in streaming mode and the backpressure is valid.