Example #1
0
 public void read(data_cb cb)
 {
     while (true)
     {
         object o = formatter.Deserialize(s);
         if (o == null)
         {
             return;
         }
         if (o is header)
         {
             cur_version = ((header)o).version;
         }
         else
         {
             cb(o);
         }
     }
 }
Example #2
0
 public static extern void registorDataCallback(data_cb cb);
Example #3
0
		public void read (data_cb cb)
		{
			while (true) {
				object o = formatter.Deserialize (s);
				if (o == null)
					return;
				if (o is header) {
					cur_version = ((header)o).version;
				} else
					cb (o);
			}
		}