func (psr PieceStateRun) String() (ret string) {
	ret = fmt.Sprintf("%d", psr.Length)
	ret += func() string {
		switch psr.Priority {
		case PiecePriorityNext:
			return "N"
		case PiecePriorityNormal:
			return "."
		case PiecePriorityReadahead:
			return "R"
		case PiecePriorityNow:
			return "!"
		case PiecePriorityHigh:
			return "H"
		default:
			return ""
		}
	}()
	if psr.Checking {
		ret += "H"
	}
	if psr.Partial {
		ret += "P"
	}
	if psr.Complete {
		ret += "C"
	}
	if !psr.Ok {
		ret += "?"
	}
	return
}
// Produces a small string representing a PieceStateRun.
Produces a small string representing a PieceStateRun.
// Produces a small string representing a PieceStateRun .
func (psr PieceStateRun) String() (ret string) {
	ret = fmt.Sprintf("%d", psr.Length)
	ret += func() string {
		switch psr.Priority {
		case PiecePriorityNext:
			return "N"
		case PiecePriorityNormal:
			return "."
		case PiecePriorityReadahead:
			return "R"
		case PiecePriorityNow:
			return "!"
		case PiecePriorityHigh:
			return "H"
		default:
			return ""
		}
	}()
	if psr.Checking {
		ret += "H"
	}
	if psr.Partial {
		ret += "P"
	}
	if psr.Complete {
		ret += "C"
	}
	if !psr.Ok {
		ret += "?"
	}
	return
}
func ( psr PieceStateRun ) String ( ) ( ret string ) { ret = fmt . Sprintf ( " " , psr . Length ) ret += func ( ) string { switch psr . Priority { case PiecePriorityNext : return " " case PiecePriorityNormal : return " " case PiecePriorityReadahead : return " " case PiecePriorityNow : return " " case PiecePriorityHigh : return " " default : return " " } } ( ) if psr . Checking { ret += " " } if psr . Partial { ret += " " } if psr . Complete { ret += " " } if ! psr . Ok { ret += " " } return }
Produces a small string representing a PieceStateRun.
Produces a small string representing a PieceStateRun .