<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Utilities.IO.IReadSource

interface IReadSource
Minimal adapter over a source of bytes (e.g. a Stream or a BinaryReader) for generic reading helpers. Implement on a struct so that the helpers can be JIT-specialized per source.
namespace Org.BouncyCastle.Utilities.IO { internal interface IReadSource { int Read(byte[] buffer, int offset, int count); } }