IEncoder.cs 477 B

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