Commit 53eadba5 authored by Martijn Vels's avatar Martijn Vels Committed by Copybara-Service
Browse files

Fix `ZeroCopyCodedInputStream::ReadCord()`

`ZeroCopyCodedInputStream::ReadCord()` is implemented in terms of `CodedInputStream::ReadCord()` which is incorrect: the contract for the interface method `ZeroCopyInputStream::ReadCord()` is that it appends to the provided cord output where `CodedInputStream::ReadCord()` sets the cord output value, clearing any pre-existing contents. This change fixes the internal implementation to append to any pre-existing contents.

PiperOrigin-RevId: 500872467
parent 7cf64792
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment