예제 #1
0
        public Service1()
        {
            for (ulong currval = 0; currval < CHUNK_SIZE; currval++)
            {
                valToTransfer miv = new valToTransfer();
                miv.timedata_struct2_data = new byte[4];
                miv.timedata_Timestamp = DateTime.Now;
                miv.struct2_data = new byte[4];
                miv.struct1_ulong1 = currval;
                m_values[currval] = miv;

            }

        }
예제 #2
0
 public Service1()
 {
     for (int currval = 0; currval < CHUNK_SIZE; currval++)
     {
         valToTransfer miv = new valToTransfer();
         miv.Item = new struct1();
         miv.UserData = new struct2();
         miv.UserData.data = new byte[4];
         miv.Value = new timedata();
         miv.Value.Timestamp = DateTime.Now;
         miv.Value.Value = new struct2();
         miv.Value.Value.data = new byte[4];
         m_values[currval] = miv;
     }
 }