Ejemplo n.º 1
0
        internal override void Clear()
        {
            if (UnpackingBuffer != null)
            {
                UnpackingBuffer.Dispose();
                UnpackingBuffer = null;
            }

            base.Clear();
        }
Ejemplo n.º 2
0
        /// <summary>
        ///		Clears the buffers to deserialize message.
        /// </summary>
        internal override void ClearBuffers()
        {
            if (errorBuffer != null)
            {
                errorBuffer.Dispose();
                errorBuffer = null;
            }

            if (resultBuffer != null)
            {
                resultBuffer.Dispose();
                resultBuffer = null;
            }

            errorStartAt  = -1;
            resultStartAt = -1;

            base.ClearBuffers();
        }