Added a new public API `bytesUntilLimit` to GPBCodedInputStream.
commit01b0b8e06e18be3d2f0166ee818c723c27901b18
authorProtobuf Team Bot <protobuf-github-bot@google.com>
Mon, 20 May 2024 17:42:32 +0000 (20 10:42 -0700)
committerCopybara-Service <copybara-worker@google.com>
Mon, 20 May 2024 17:44:46 +0000 (20 10:44 -0700)
tree2755f8e0d3b2d445ba7af47b2715b1d5f0eb65c9
parent47f4bc958bc719b905942738470718f03ca70b33
Added a new public API `bytesUntilLimit` to GPBCodedInputStream.

This simply exposes preexisting logic. This read-only API is for convenience and doesn't reveal any information that was not already available. `[GPBCodedInputStream position]` is already a public API. The `limit` is known to the user because it's specified by them.

PiperOrigin-RevId: 635502694
objectivec/GPBCodedInputStream.h
objectivec/GPBCodedInputStream.m
objectivec/Tests/GPBCodedInputStreamTests.m