up
This commit is contained in:
33
Assets/BestHTTP/SecureProtocol/util/IMemoable.cs
Normal file
33
Assets/BestHTTP/SecureProtocol/util/IMemoable.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
|
||||
using System;
|
||||
|
||||
namespace 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user