IMarshalSupportPlacement.cs 392 B

1234567891011121314
  1. using System.IO;
  2. namespace TBL.CSharp.Serialization.Marshal;
  3. /// <summary>
  4. /// Marshal 以就地方式反序列化的支持接口
  5. /// </summary>
  6. public interface IMarshalSupportPlacement<in T> : IMarshalSupport<T>
  7. {
  8. /// <summary>
  9. /// 恢复 <paramref name="target"/> 到 <paramref name="stream"/> 中记录的状态
  10. /// </summary>
  11. void Restore(Stream stream, T target);
  12. }