code: def readall(self):
          # type: () -> bytes
          '''
          A method to read and return the remaining bytes in the file.
  
          Parameters:
           None.
          Returns:
           The rest of the data left in the file.  If the file is at or past EOF,
           returns an empty bytestring.
          '''
          if not self._open:
              raise pycdlibexception.PyCdlibInvalidInput('I/O operation on closed file.')
  
          readsize = self._length - self._offset
          if readsize > 0:
              data = self._fp.read(readsize)
              self._offset += readsize
          else:
              data = b''
  
          return datf readall(self):
          # type: () -> bytes
          '''
          A method to read and return the remaining bytes in the file.
  
          Parameters:
           None.
          Returns:
           The rest of the data left in the file.  If the file is at or past EOF,
           returns an empty bytestring.
          '''
          if not self._open:
              raise pycdlibexception.PyCdlibInvalidInput('I/O operation on closed file.')
  
          readsize = self._length - self._offset
          if readsize > 0:
              data = self._fp.read(readsize)
              self._offset += readsize
          else:
              data = b''
  
          return data
docs: A method to read and return the remaining bytes in the file.
  
          Parameters:
           None.
          Returns:
           The rest of the data left in the file.  If the file is at or past EOF,
           returns an empty bytestring.