示例#1
0
        public long GetLength()
        {
            long size = 0;

            size += XYRange.GetLength();
            size += sizeof(int);
            size += Util.GetArraySize(Points);
            size += MRange.GetLength();
            size += Util.GetArraySize(MValues);
            return(size);
        }
示例#2
0
 public void Load(ref BinaryReader br)
 {
     XYRange = new RangeXY();
     XYRange.Load(ref br);
     NumParts  = br.ReadInt32();
     NumPoints = br.ReadInt32();
     Parts     = new int[NumParts];
     Points    = new Point[NumPoints];
     for (int i = 0; i < NumParts; i++)
     {
         Parts[i] = br.ReadInt32();
     }
     for (int i = 0; i < NumPoints; i++)
     {
         Points[i].Load(ref br);
     }
     MRange.Load(ref br);
     for (int i = 0; i < NumPoints; i++)
     {
         MValues[i] = br.ReadDouble();
     }
 }