Beispiel #1
0
 /// <summary>
 /// 参数数据序列化以后添加缓存快照历史节点
 /// </summary>
 /// <param name="node"></param>
 internal void CreateNode(Node node)
 {
     stream.Data.CurrentIndex = historyNodes[historyNodes.Length - 1].Value;
     Parameter.Serialize(stream);
     historyNodes.Add(new KeyValue <Node, int>(node, stream.Data.CurrentIndex));
     serializeEnd(OperationParameter.OperationType.GetOrCreateNode);
 }
Beispiel #2
0
 /// <summary>
 /// 序列化参数信息
 /// </summary>
 /// <param name="stream"></param>
 internal void SerializeParameter(UnmanagedStream stream)
 {
     if (parent != null)
     {
         parent.SerializeParameter(stream);
     }
     else
     {
         ShortPath.Identity.Value.UnsafeSerialize(stream);
     }
     Parameter.Serialize(stream);
 }
Beispiel #3
0
 /// <summary>
 /// 序列化参数信息
 /// </summary>
 /// <param name="stream"></param>
 internal void SerializeParameter(UnmanagedStream stream)
 {
     if (Parent != null)
     {
         Parent.SerializeParameter(stream);
         //serializeParameter(stream);
         Parameter.Serialize(stream);
     }
     else
     {
         ClientDataStructure.Identity.UnsafeSerialize(stream);
     }
 }