code: def parse(self, rrstr):
          # type: (bytes) -> None
          '''
          Parse a Rock Ridge Sharing Protocol record out of a string.
  
          Parameters:
           rrstr - The string to parse the record out of.
          Returns:
           Nothing.
          '''
          if self._initialized:
              raise pycdlibexception.PyCdlibInternalError('SP record already initialized!')
  
          (su_len, su_entry_version_unused, check_byte1, check_byte2,
           self.bytes_to_skip) = struct.unpack_from('=BBBBB', rrstr[:7], 2)
  
          # We assume that the caller has already checked the su_entry_version,
          # so we don't bother.
  
          if su_len != RRSPRecord.length():
              raise pycdlibexception.PyCdlibInvalidISO('Invalid length on rock ridge extension')
          if check_byte1 != 0xbe or check_byte2 != 0xef:
              raise pycdlibexception.PyCdlibInvalidISO('Invalid check bytes on rock ridge extension')
  
          self._initialized = Truf parse(self, rrstr):
          # type: (bytes) -> None
          '''
          Parse a Rock Ridge Sharing Protocol record out of a string.
  
          Parameters:
           rrstr - The string to parse the record out of.
          Returns:
           Nothing.
          '''
          if self._initialized:
              raise pycdlibexception.PyCdlibInternalError('SP record already initialized!')
  
          (su_len, su_entry_version_unused, check_byte1, check_byte2,
           self.bytes_to_skip) = struct.unpack_from('=BBBBB', rrstr[:7], 2)
  
          # We assume that the caller has already checked the su_entry_version,
          # so we don't bother.
  
          if su_len != RRSPRecord.length():
              raise pycdlibexception.PyCdlibInvalidISO('Invalid length on rock ridge extension')
          if check_byte1 != 0xbe or check_byte2 != 0xef:
              raise pycdlibexception.PyCdlibInvalidISO('Invalid check bytes on rock ridge extension')
  
          self._initialized = True
docs: Parse a Rock Ridge Sharing Protocol record out of a string.
  
          Parameters:
           rrstr - The string to parse the record out of.
          Returns:
           Nothing.