Пример #1
0
        /// <summary>
        ///     Construct a IBitstream that reads data from a given InputStream.
        /// </summary>
        internal Bitstream(PushbackStream stream)
        {
            InitBlock();
            if (stream == null)
            {
                throw new NullReferenceException("in stream is null");
            }

            m_SourceStream = stream;

            CloseFrame();
        }
Пример #2
0
        /// <summary>
        ///     Construct a IBitstream that reads data from a given InputStream.
        /// </summary>
        internal Bitstream(PushbackStream stream)
        {
            InitBlock();
            if (stream == null)
                throw new NullReferenceException("in stream is null");

            m_SourceStream = stream;

            CloseFrame();
        }