<PackageReference Include="Google.Protobuf" Version="3.34.0" />

Google.Protobuf.LimitedInputStream

sealed class LimitedInputStream : Stream
Stream implementation which proxies another stream, only allowing a certain amount of data to be read. Note that this is only used to read delimited streams, so it doesn't attempt to implement everything.