培训考核三期,新版培训,网页版培训登录器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
1.1 KiB

#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
public interface IMemoable
{
/// <summary>
/// Produce a copy of this object with its configuration and in its current state.
/// </summary>
/// <remarks>
/// The returned object may be used simply to store the state, or may be used as a similar object
/// starting from the copied state.
/// </remarks>
IMemoable Copy();
/// <summary>
/// Restore a copied object state into this object.
/// </summary>
/// <remarks>
/// Implementations of this method <em>should</em> try to avoid or minimise memory allocation to perform the reset.
/// </remarks>
/// <param name="other">an object originally {@link #copy() copied} from an object of the same type as this instance.</param>
/// <exception cref="InvalidCastException">if the provided object is not of the correct type.</exception>
/// <exception cref="MemoableResetException">if the <b>other</b> parameter is in some other way invalid.</exception>
void Reset(IMemoable other);
}
}
#pragma warning restore
#endif