UnRead() public method

public UnRead ( int length ) : void
length int
return void
Ejemplo n.º 1
0
 /// <summary> Unreads the bytes read from the frame.
 /// @throws BitstreamException
 /// </summary>
 // REVIEW: add new error codes for this.
 public void  unreadFrame()
 {
     if (wordpointer == -1 && bitindex == -1 && (framesize > 0))
     {
         try
         {
             //source.UnRead(SupportClass.ToByteArray(frame_bytes), 0, framesize);
             source.UnRead(framesize);
         }
         catch (System.IO.IOException ex)
         {
             throw newBitstreamException(javazoom.jl.decoder.BitstreamErrors_Fields.STREAM_ERROR);
         }
     }
 }