// String returns the default string representation of a
// Cid. Currently, Base58 is used as the encoding for the
// multibase string.
334597
func (c Cid) String() string {
	switch c.Version() {
	case 0:
		return c.Hash().B58String()
	case 1:
		mbstr, err := mbase.Encode(mbase.Base58BTC, c.Bytes())
		if err != nil {
			panic("should not error with hardcoded mbase: " + err.Error())
		}

		return mbstr
	default:
		panic("not possible to reach this point")
	}
}
1330235
func (s *StateCodeExpr) String() string {
	return fmt.Sprintf("%s: %T{Code: %v}", s.p, s, s.Code)
}
352133
func (t Type) String() string {
	switch t {
	case Bool:
		return "bool"
	case Int64:
		return "int64"
	case Float64:
		return "float64"
	case Text:
		return "text"
	case Blob:
		return "blob"
	default:
		return "UNKNOWN"
	}
}
807336
func (h Hex) String() string {
	s := fmt.Sprintf("%X", h.Value)
	if len(s)%2 != 0 {
		return "0x0" + s
	}

	return "0x" + s
}
1134721
func (n *Node) String() string {
	return fmt.Sprintf("%s<%s>", n.t.String(), n.id.String())
}
943103
func (u UUID) String() string {
	output := make([]byte, UUIDStringLen)

	output[0] = hexBytes[(u[0]&0xf0)>>4]
	output[1] = hexBytes[(u[0] & 0x0f)]
	output[2] = hexBytes[(u[1]&0xf0)>>4]
	output[3] = hexBytes[(u[1] & 0x0f)]
	output[4] = hexBytes[(u[2]&0xf0)>>4]
	output[5] = hexBytes[(u[2] & 0x0f)]
	output[6] = hexBytes[(u[3]&0xf0)>>4]
	output[7] = hexBytes[(u[3] & 0x0f)]
	output[8] = '-'
	output[9] = hexBytes[(u[4]&0xf0)>>4]
	output[10] = hexBytes[(u[4] & 0x0f)]
	output[11] = hexBytes[(u[5]&0xf0)>>4]
	output[12] = hexBytes[(u[5] & 0x0f)]
	output[13] = '-'
	output[14] = hexBytes[(u[6]&0xf0)>>4]
	output[15] = hexBytes[(u[6] & 0x0f)]
	output[16] = hexBytes[(u[7]&0xf0)>>4]
	output[17] = hexBytes[(u[7] & 0x0f)]
	output[18] = '-'
	output[19] = hexBytes[(u[8]&0xf0)>>4]
	output[20] = hexBytes[(u[8] & 0x0f)]
	output[21] = hexBytes[(u[9]&0xf0)>>4]
	output[22] = hexBytes[(u[9] & 0x0f)]
	output[23] = '-'
	output[24] = hexBytes[(u[10]&0xf0)>>4]
	output[25] = hexBytes[(u[10] & 0x0f)]
	output[26] = hexBytes[(u[11]&0xf0)>>4]
	output[27] = hexBytes[(u[11] & 0x0f)]
	output[28] = hexBytes[(u[12]&0xf0)>>4]
	output[29] = hexBytes[(u[12] & 0x0f)]
	output[30] = hexBytes[(u[13]&0xf0)>>4]
	output[31] = hexBytes[(u[13] & 0x0f)]
	output[32] = hexBytes[(u[14]&0xf0)>>4]
	output[33] = hexBytes[(u[14] & 0x0f)]
	output[34] = hexBytes[(u[15]&0xf0)>>4]
	output[35] = hexBytes[(u[15] & 0x0f)]

	return string(output)
}
1179224
func (v SimpleType) String() string {
	w := int32(v)
	switch w {
	case 1:
		return "BOOL"
	case 2:
		return "BYTE"
	case 3:
		return "INT8"
	case 4:
		return "INT16"
	case 5:
		return "INT32"
	case 6:
		return "INT64"
	case 7:
		return "FLOAT64"
	case 8:
		return "STRING"
	case 9:
		return "STRUCT_EMPTY"
	}
	return fmt.Sprintf("SimpleType(%d)", w)
}
117055
func (v Version) String() string {
	s := fmt.Sprintf("%d.%d", v.Major, v.Minor)
	if v.Point > 0 {
		s = fmt.Sprintf("%s.%d", s, v.Point)
	}
	if v.Patch != "" {
		s = fmt.Sprintf("%s.%s", s, v.Patch)
	}
	if v.StorageEngine != "" {
		s = fmt.Sprintf("%s/%s", s, v.StorageEngine)
	}
	return s
}
584681
func (a *baseFuncDesc) String() string {
	buffer := bytes.NewBufferString(a.Name)
	buffer.WriteString("(")
	for i, arg := range a.Args {
		buffer.WriteString(arg.String())
		if i+1 != len(a.Args) {
			buffer.WriteString(", ")
		}
	}
	buffer.WriteString(")")
	return buffer.String()
}
50803
func (s *Server) String() string {
	var addrStr, networkStr string
	if s.Addr != nil {
		addrStr = s.Addr.String()
		networkStr = s.Addr.Network()
	}

	return fmt.Sprintf("%s (Addr: %s/%s) (DC: %s)", s.Name, networkStr, addrStr, s.Datacenter)
}
1230194
func (uuid uuid) string() string {
	if uuid == nil || len(uuid) != 16 {
		return ""
	}
	b := []byte(uuid)
	return fmt.Sprintf("%08x-%04x-%04x-%04x-%012x",
		b[:4], b[4:6], b[6:8], b[8:10], b[10:])
}
1167811
func (v *StructA) String() string {
	if v == nil {
		return "<nil>"
	}

	var fields [1]string
	i := 0
	fields[i] = fmt.Sprintf("S: %v", v.S)
	i++

	return fmt.Sprintf("StructA{%v}", strings.Join(fields[:i], ", "))
}
1102901
func String(chars int, dev string) (string, error) {
	b, err := Bytes(chars, dev)
	if err != nil {
		return "", e.Forward(err)
	}
	return string(b), nil
}
246511
func (v *structV) String() string {
	res := "{"
	for i, v := range *v {
		if i > 0 {
			res += ", "
		}
		res += v.String()
	}
	return res + "}"
}
1075062
func (id ID) String() string {
	b := uuid.UUID(make([]byte, EncodedLength))
	if err := id.Write([]byte(b)); err != nil {
		log.Errorf("Unable to write as string: %v", err)
	}
	return b.String()
}
1193332
func (n *Node) String() string {
	u := url.URL{Scheme: "enode"}
	if n.Incomplete() {
		u.Host = fmt.Sprintf("%x", n.ID[:])
	} else {
		addr := net.TCPAddr{IP: n.IP, Port: int(n.TCP)}
		u.User = url.User(fmt.Sprintf("%x", n.ID[:]))
		u.Host = addr.String()
		if n.UDP != n.TCP {
			u.RawQuery = "discport=" + strconv.Itoa(int(n.UDP))
		}
	}
	return u.String()
}
693551
func (udh *UDH) String() string {
	return udh.IEI.String() + "," + udh.IELength.String() + "," + udh.IEData.String()
}