MCPcopy Create free account
hub / github.com/pion/ice / RemoveExtension

Method RemoveExtension

candidate_base.go:686–702  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

684}
685
686func (c *candidateBase) RemoveExtension(key string) (ok bool) {
687 if key == "tcptype" {
688 c.tcpType = TCPTypeUnspecified
689 ok = true
690 }
691
692 for i := range c.extensions {
693 if c.extensions[i].Key == key {
694 c.extensions = append(c.extensions[:i], c.extensions[i+1:]...)
695 ok = true
696
697 break
698 }
699 }
700
701 return ok
702}
703
704// marshalExtensions returns the string representation of the candidate extensions.
705func (c *candidateBase) marshalExtensions() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected