IEncoder.cs 547 B

12345678910111213141516171819202122
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.IO;
  5. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
  6. {
  7. /**
  8. * Encode and decode byte arrays (typically from binary to 7-bit ASCII
  9. * encodings).
  10. */
  11. public interface IEncoder
  12. {
  13. int Encode(byte[] data, int off, int length, Stream outStream);
  14. int Decode(byte[] data, int off, int length, Stream outStream);
  15. int DecodeString(string data, Stream outStream);
  16. }
  17. }
  18. #pragma warning restore
  19. #endif