MCPcopy Create free account
hub / github.com/pion/rtcp / String

Method String

source_description.go:31–54  ·  view source on GitHub ↗

nolint:cyclop

()

Source from the content-addressed store, hash-verified

29
30//nolint:cyclop
31func (s SDESType) String() string {
32 switch s {
33 case SDESEnd:
34 return "END"
35 case SDESCNAME:
36 return "CNAME"
37 case SDESName:
38 return "NAME"
39 case SDESEmail:
40 return "EMAIL"
41 case SDESPhone:
42 return "PHONE"
43 case SDESLocation:
44 return "LOC"
45 case SDESTool:
46 return "TOOL"
47 case SDESNote:
48 return "NOTE"
49 case SDESPrivate:
50 return "PRIV"
51 default:
52 return string(s)
53 }
54}
55
56const (
57 sdesSourceLen = 4

Callers 1

StringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected