I want to know how does protocol buffers handles corrupted data while parsing stream. Is there any way to know if data has been corrupted.
Does protocol buffer provides any inbuilt mechanism for data integrity check?
Thanks,
None whatsoever. While some changes might be detected by causing parse failures, a lot of other changes would not be flagged at all. If you are concerned about integrity, add a separate mechanism for this outside of the serialization layer - presumably a checksum / hash.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With