Esempio n. 1
0
        public BTimelineSampleCodec()
        {
            mPrevLevel        = -1;
            mPrevUserID       = 0;
            mPrevCPUStartTime = 0;
            mPrevCPUEndTime   = 0;
            mPrevGPUStartTime = 0;
            mPrevGPUEndTime   = 0;
            mPrevSectionID    = 0;

            mSectionPredDataArray = new BSectionPredData[0];
            mCoder = new BUniversalCoder();
        }
Esempio n. 2
0
        //This is not efficient, but is compatible for the port
        private void resize(ref BSectionPredData[] buffer, int size)
        {
            if (buffer != null)
            {
                BSectionPredData[] newBuf = new BSectionPredData[size];
                //newBuf.Initialize();
                for (uint i = 0; i < size; i++)
                {
                    newBuf[i] = new BSectionPredData();
                }

                buffer.CopyTo(newBuf, 0);
                buffer = newBuf;
            }
            else
            {
                buffer = new BSectionPredData[size];
            }
            //throw new System.Exception("implement this");
        }