parameters: (self, fh, length)
docstring: seekExactly
  
          Seeks length bytes from the current position and checks the result
docstring_summary: seekExactly
docstring_tokens: seekExactly
function: def seekExactly(self, fh, length):
          """seekExactly
  
          Seeks length bytes from the current position and checks the result
          """
          ## assert isinstance(fh, file)
          assert duck_typed(fh, ['seek', 'tell'])  # duck typing
          pos = fh.tell()
          fh.seek(length, 1)
          if fh.tell() - pos != length:
              raise EOFException()
function_tokens: def seekExactly ( self , fh , length ) : ## assert isinstance(fh, file) assert duck_typed ( fh , [ 'seek' , 'tell' ] ) # duck typing pos = fh . tell ( ) fh . seek ( length , 1 ) if fh . tell ( ) - pos != length : raise EOFException ( )