IBlockResult.cs 1.0 KB

12345678910111213141516171819202122232425262728
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
  4. {
  5. /// <summary>
  6. /// Operators that reduce their input to a single block return an object
  7. /// of this type.
  8. /// </summary>
  9. public interface IBlockResult
  10. {
  11. /// <summary>
  12. /// Return the final result of the operation.
  13. /// </summary>
  14. /// <returns>A block of bytes, representing the result of an operation.</returns>
  15. byte[] Collect();
  16. /// <summary>
  17. /// Store the final result of the operation by copying it into the destination array.
  18. /// </summary>
  19. /// <returns>The number of bytes copied into destination.</returns>
  20. /// <param name="destination">The byte array to copy the result into.</param>
  21. /// <param name="offset">The offset into destination to start copying the result at.</param>
  22. int Collect(byte[] destination, int offset);
  23. }
  24. }
  25. #pragma warning restore
  26. #endif