protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Public the MergeFrom method of type ReadOnlySequence<byte>

Open VAllens opened this issue 3 years ago • 9 comments

(Edited by jskeet) For public release notes:

Add a public IMessage.MergeFrom(ReadOnlySequence<byte>) extension method, exposing existing internal functionality. (Parsing a completely new message from ReadOnlySequence<byte> was already publicly available, just not merging.)


Public the MergeFrom method of type ReadOnlySequence<byte>.

We found that the MergeFrom method of type ReadOnlySequence<byte> is internal.

We need it !!!

VAllens avatar Dec 02 '22 02:12 VAllens

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Dec 02 '22 02:12 google-cla[bot]

I'll need to carefully consider the impact of this on various versions etc. I'm still finishing up work from going on vacation, so I won't even be able to look at this until January. It may not make it into the next version; we'll see.

jskeet avatar Dec 14 '22 23:12 jskeet

Great !!! This is positive.

VAllens avatar Dec 15 '22 01:12 VAllens

Right, I've now had a better chance to evaluate this, and it looks fine. I've edited the PR description so that it'll be easier to create release notes.

jskeet avatar Jan 04 '23 08:01 jskeet

@deannagarcia: This should be included in the next C# release. I'm happy for it to either stay here as a PR and get included via Copybara when that work is complete, or force-merged now. Let me know what you think.

jskeet avatar Jan 04 '23 08:01 jskeet

Can you rebase this PR so we can get it submitted?

deannagarcia avatar Jan 10 '23 18:01 deannagarcia

@deannagarcia: I may well be able to do that myself. Will give it a try.

jskeet avatar Jan 10 '23 18:01 jskeet

@deannagarcia: Done. Will run Kokoro as well...

jskeet avatar Jan 10 '23 18:01 jskeet

@deannagarcia: I may well be able to do that myself. Will give it a try.

Thanks for @jskeet 's help. :)

VAllens avatar Jan 11 '23 02:01 VAllens

I'm going to rebase and repush this PR so that it has a recent HEAD - I believe that we'll then be able to get this merged.

jskeet avatar Jan 19 '23 08:01 jskeet

(Rebased again... I'm going to really try to get this all green today...)

jskeet avatar Jan 20 '23 08:01 jskeet