MCPcopy Create free account
hub / github.com/google/gapid / Channels

Method Channels

core/stream/format.go:138–148  ·  view source on GitHub ↗

Channels returns all the unique channels used by the format.

()

Source from the content-addressed store, hash-verified

136
137// Channels returns all the unique channels used by the format.
138func (f *Format) Channels() Channels {
139 seen := map[Channel]struct{}{}
140 out := make(Channels, 0, len(f.Components))
141 for _, t := range f.Components {
142 if _, ok := seen[t.Channel]; !ok {
143 out = append(out, t.Channel)
144 seen[t.Channel] = struct{}{}
145 }
146 }
147 return out
148}
149
150// GetSingleComponent returns the single component that matches the predicate p.
151func (f *Format) GetSingleComponent(p func(*Component) bool) *Component {

Callers 3

ConvertFunction · 0.45
resolveImplicitMappingsFunction · 0.45
convertSharedExponentFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected