Beispiel #1
0
        unsafe void EncodeData()
        {
            IntPtr datax = System.Runtime.InteropServices.Marshal.AllocHGlobal(4096);
            sbyte *data  = (sbyte *)datax.ToPointer();

            while (!StopThread)
            {
                System.Threading.Thread.Sleep(10);
                while (cb.getNeedForUpdate() < 4096 * 4)
                {
                    cb.Download(data, 4096);
                    ve.Encode(data, 4096);
                }
            }
            System.Runtime.InteropServices.Marshal.FreeHGlobal(datax);
            ve.Close();

            AllDone = true;
        }