Beispiel #1
0
        public void ProcessBufferFrame(NetworkBufferFrame frame)
        {
            Contract.Requires(frame != null);

            try
            {
                if (frame.ContentSize > 0)
                    this.ProcessBufferContents(frame.Content, 0, frame.ContentSize);
            }
            finally
            {
                frame.Release();
            }
        }
Beispiel #2
0
        private void CheckIn(NetworkBufferFrame frame)
        {
            lock (this.sync)
            {
                if (this.CheckedOut == 0)
                    throw new NotImplementedException();

                this.activeFrames.Remove(frame);
                this.inactiveFrames.Enqueue(frame);

            }
        }