Translator.cs 572 B

1234567891011121314151617181920212223
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
  5. {
  6. /// <summary>
  7. /// Translator interface.
  8. /// </summary>
  9. public interface ITranslator
  10. {
  11. int GetEncodedBlockSize();
  12. int Encode(byte[] input, int inOff, int length, byte[] outBytes, int outOff);
  13. int GetDecodedBlockSize();
  14. int Decode(byte[] input, int inOff, int length, byte[] outBytes, int outOff);
  15. }
  16. }
  17. #pragma warning restore
  18. #endif