コード例 #1
0
        public static HNCCModel Deserialize(Stream stream)
        {
            HNCCModel hnccModel = new HNCCModel();

            hnccModel.DeserializeNccModel(HSerializedItem.Deserialize(stream));
            return(hnccModel);
        }
コード例 #2
0
        public HNCCModel Clone()
        {
            HSerializedItem serializedItemHandle = this.SerializeNccModel();
            HNCCModel       hnccModel            = new HNCCModel();

            hnccModel.DeserializeNccModel(serializedItemHandle);
            serializedItemHandle.Dispose();
            return(hnccModel);
        }
コード例 #3
0
        internal static int LoadNew(IntPtr proc, int parIndex, int err, out HNCCModel[] obj)
        {
            HTuple tuple;

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