code: def set_data_length(self, length):
          # type: (int) -> None
          '''
          A method to set the length of the data that this Directory Record
          points to.
  
          Parameters:
           length - The new length for the data.
          Returns:
           The length of the data that this Directory Record points to.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Directory Record not yet initialized')
          self.data_length = lengtf set_data_length(self, length):
          # type: (int) -> None
          '''
          A method to set the length of the data that this Directory Record
          points to.
  
          Parameters:
           length - The new length for the data.
          Returns:
           The length of the data that this Directory Record points to.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Directory Record not yet initialized')
          self.data_length = length
docs: A method to set the length of the data that this Directory Record
          points to.
  
          Parameters:
           length - The new length for the data.
          Returns:
           The length of the data that this Directory Record points to.