A SourceDescriptionItem is a part of a SourceDescription that describes a stream.
| 278 | |
| 279 | // A SourceDescriptionItem is a part of a SourceDescription that describes a stream. |
| 280 | type SourceDescriptionItem struct { |
| 281 | // The type identifier for this item. eg, SDESCNAME for canonical name description. |
| 282 | // |
| 283 | // Type zero or SDESEnd is interpreted as the end of an item list and cannot be used. |
| 284 | Type SDESType |
| 285 | // Text is a unicode text blob associated with the item. Its meaning varies based on the item's Type. |
| 286 | Text string |
| 287 | } |
| 288 | |
| 289 | // Len returns the length of the SourceDescriptionItem when encoded as binary. |
| 290 | func (s SourceDescriptionItem) Len() int { |
nothing calls this directly
no outgoing calls
no test coverage detected