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

Method Header

source_description.go:187–193  ·  view source on GitHub ↗

Header returns the Header associated with this packet.

()

Source from the content-addressed store, hash-verified

185
186// Header returns the Header associated with this packet.
187func (s *SourceDescription) Header() Header {
188 return Header{
189 Count: uint8(len(s.Chunks)), //nolint:gosec // G115
190 Type: TypeSourceDescription,
191 Length: uint16((s.MarshalSize() / 4) - 1), //nolint:gosec // G115
192 }
193}
194
195// A SourceDescriptionChunk contains items describing a single RTP source.
196type SourceDescriptionChunk struct {

Callers 1

MarshalMethod · 0.95

Calls 1

MarshalSizeMethod · 0.95

Tested by

no test coverage detected