InputStreamPacket.cs 574 B

123456789101112131415161718192021222324
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Bcpg
  4. {
  5. public class InputStreamPacket
  6. : Packet
  7. {
  8. private readonly BcpgInputStream bcpgIn;
  9. public InputStreamPacket(
  10. BcpgInputStream bcpgIn)
  11. {
  12. this.bcpgIn = bcpgIn;
  13. }
  14. /// <summary>Note: you can only read from this once...</summary>
  15. public BcpgInputStream GetInputStream()
  16. {
  17. return bcpgIn;
  18. }
  19. }
  20. }
  21. #pragma warning restore
  22. #endif