Exemple #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();
        }
Exemple #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();
        }