NullOutputStream.cs 427 B

12345678910111213141516171819202122
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO
  5. {
  6. internal class NullOutputStream
  7. : BaseOutputStream
  8. {
  9. public override void WriteByte(byte b)
  10. {
  11. // do nothing
  12. }
  13. public override void Write(byte[] buffer, int offset, int count)
  14. {
  15. // do nothing
  16. }
  17. }
  18. }
  19. #pragma warning restore
  20. #endif