예제 #1
0
        public static HDescriptorModel Deserialize(Stream stream)
        {
            HDescriptorModel hdescriptorModel = new HDescriptorModel();

            hdescriptorModel.DeserializeDescriptorModel(HSerializedItem.Deserialize(stream));
            return(hdescriptorModel);
        }
예제 #2
0
        public HDescriptorModel Clone()
        {
            HSerializedItem  serializedItemHandle = this.SerializeDescriptorModel();
            HDescriptorModel hdescriptorModel     = new HDescriptorModel();

            hdescriptorModel.DeserializeDescriptorModel(serializedItemHandle);
            serializedItemHandle.Dispose();
            return(hdescriptorModel);
        }
예제 #3
0
        internal static int LoadNew(IntPtr proc, int parIndex, int err, out HDescriptorModel[] obj)
        {
            HTuple tuple;

            err = HTuple.LoadNew(proc, parIndex, err, out tuple);
            obj = new HDescriptorModel[tuple.Length];
            for (int index = 0; index < tuple.Length; ++index)
            {
                obj[index] = new HDescriptorModel(tuple[index].IP);
            }
            return(err);
        }
예제 #4
0
 internal static int LoadNew(IntPtr proc, int parIndex, int err, out HDescriptorModel obj)
 {
     obj = new HDescriptorModel(HTool.UNDEF);
     return(obj.Load(proc, parIndex, err));
 }