Example #1
0
 /// <summary>
 /// Unreads the bytes read from the frame.
 /// Throws BitstreamException.
 /// REVIEW: add new error codes for this.
 /// </summary>
 internal void UnreadFrame()
 {
     if (_WordPointer == -1 && _BitIndex == -1 && _FrameSize > 0)
     {
         try {
             _SourceStream.UnRead(_FrameSize);
         }
         catch {
             throw NewBitstreamException(BitstreamErrors.STREA_ERROR);
         }
     }
 }
Example #2
0
 /// <summary>
 ///     Unreads the bytes read from the frame.
 ///     Throws BitstreamException.
 ///     REVIEW: add new error codes for this.
 /// </summary>
 public void unreadFrame()
 {
     if (m_WordPointer == -1 && m_BitIndex == -1 && (m_FrameSize > 0))
     {
         try
         {
             m_SourceStream.UnRead(m_FrameSize);
         }
         catch
         {
             throw newBitstreamException(BitstreamErrors.STREAM_ERROR);
         }
     }
 }