IBlockResult.cs 972 B

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