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

Method len

source_description.go:266–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264}
265
266func (s SourceDescriptionChunk) len() int {
267 chunkLen := sdesSourceLen
268 for _, it := range s.Items {
269 chunkLen += it.Len()
270 }
271 chunkLen += sdesTypeLen // for terminating null octet
272
273 // align to 32-bit boundary
274 chunkLen += getPadding(chunkLen)
275
276 return chunkLen
277}
278
279// A SourceDescriptionItem is a part of a SourceDescription that describes a stream.
280type SourceDescriptionItem struct {

Callers 2

UnmarshalMethod · 0.95
MarshalSizeMethod · 0.45

Calls 2

getPaddingFunction · 0.85
LenMethod · 0.45

Tested by

no test coverage detected