parameters: (self, st_size)
docstring: Resizes file content, padding with nulls if new size exceeds the old.
  
      Args:
        st_size: The desired size for the file.
  
      Raises:
        IOError: if the st_size arg is not a non-negative integer
docstring_summary: Resizes file content, padding with nulls if new size exceeds the old.
docstring_tokens: Resizes file content padding with nulls if new size exceeds the old .
function: def SetSize(self, st_size):
      """Resizes file content, padding with nulls if new size exceeds the old.
  
      Args:
        st_size: The desired size for the file.
  
      Raises:
        IOError: if the st_size arg is not a non-negative integer
      """
  
      if not isinstance(st_size, int) or st_size < 0:
        raise IOError(errno.ENOSPC,
                      'Fake file object: can not create non negative integer '
                      'size=%r fake file' % st_size,
                      self.name)
  
      current_size = len(self.contents)
      if st_size < current_size:
        self.contents = self.contents[:st_size]
      else:
        self.contents = '%s%s' % (self.contents, '\0' * (st_size - current_size))
      self.st_size = len(self.contents)
      self.epoch += 1
function_tokens: def SetSize ( self , st_size ) : if not isinstance ( st_size , int ) or st_size < 0 : raise IOError ( errno . ENOSPC , 'Fake file object: can not create non negative integer ' 'size=%r fake file' % st_size , self . name ) current_size = len ( self . contents ) if st_size < current_size : self . contents = self . contents [ : st_size ] else : self . contents = '%s%s' % ( self . contents , '\0' * ( st_size - current_size ) ) self . st_size = len ( self . contents ) self . epoch += 1