String converts the Extended report block types into readable strings.
()
| 70 | |
| 71 | // String converts the Extended report block types into readable strings. |
| 72 | func (t BlockTypeType) String() string { |
| 73 | switch t { |
| 74 | case LossRLEReportBlockType: |
| 75 | return "LossRLEReportBlockType" |
| 76 | case DuplicateRLEReportBlockType: |
| 77 | return "DuplicateRLEReportBlockType" |
| 78 | case PacketReceiptTimesReportBlockType: |
| 79 | return "PacketReceiptTimesReportBlockType" |
| 80 | case ReceiverReferenceTimeReportBlockType: |
| 81 | return "ReceiverReferenceTimeReportBlockType" |
| 82 | case DLRRReportBlockType: |
| 83 | return "DLRRReportBlockType" |
| 84 | case StatisticsSummaryReportBlockType: |
| 85 | return "StatisticsSummaryReportBlockType" |
| 86 | case VoIPMetricsReportBlockType: |
| 87 | return "VoIPMetricsReportBlockType" |
| 88 | } |
| 89 | |
| 90 | return fmt.Sprintf("invalid value %d", t) |
| 91 | } |
| 92 | |
| 93 | // rleReportBlock defines the common structure used by both |
| 94 | // Loss RLE report blocks (RFC 3611 §4.1) and Duplicate RLE |
nothing calls this directly
no outgoing calls
no test coverage detected