code: func Dump(data []byte) (
  	h *Header,
  	tocs []*Toc,
  	metrics map[uint64]Metric,
  	values map[uint64]*Value,
  	instances map[uint64]Instance,
  	indoms map[uint64]*InstanceDomain,
  	strings map[uint64]*String,
  	err error,
  ) {
  	h, err = readHeader(data)
  	if err != nil {
  		return nil, nil, nil, nil, nil, nil, nil, err
  	}
  
  	tocs, err = readTocs(data, h.Toc)
  	if err != nil {
  		return nil, nil, nil, nil, nil, nil, nil, err
  	}
  
  	var ierr, inerr, merr, verr, serr error
  
  	metrics, values, instances, indoms, strings, ierr, inerr, merr, verr, serr = readComponents(data, tocs, h.Version)
  
  	switch {
  	case ierr != nil:
  		return nil, nil, nil, nil, nil, nil, nil, ierr
  	case inerr != nil:
  		return nil, nil, nil, nil, nil, nil, nil, inerr
  	case merr != nil:
  		return nil, nil, nil, nil, nil, nil, nil, merr
  	case verr != nil:
  		return nil, nil, nil, nil, nil, nil, nil, verr
  	case serr != nil:
  		return nil, nil, nil, nil, nil, nil, nil, serr
  	}
  
  	return
  }
docs: // Dump creates a data dump from the passed data