MCPcopy
hub / github.com/g3n/engine / decSourceTechniqueCommon

Method decSourceTechniqueCommon

loader/collada/common.go:191–209  ·  view source on GitHub ↗
(start xml.StartElement, source *Source)

Source from the content-addressed store, hash-verified

189}
190
191func (d *Decoder) decSourceTechniqueCommon(start xml.StartElement, source *Source) error {
192
193 // Decodes source technique common children
194 for {
195 // Get next child
196 child, _, err := d.decNextChild(start)
197 if err != nil || child.Name.Local == "" {
198 return err
199 }
200 //log.Debug("decSourceTechniqueCommon(%s): %s", start.Name.Local, child.Name.Local)
201 if child.Name.Local == "accessor" {
202 err = d.decAcessor(child, source)
203 if err != nil {
204 return err
205 }
206 continue
207 }
208 }
209}
210
211// decAcessore decodes the acessor from the specified source
212func (d *Decoder) decAcessor(start xml.StartElement, source *Source) error {

Callers 1

decSourceMethod · 0.95

Calls 2

decNextChildMethod · 0.95
decAcessorMethod · 0.95

Tested by

no test coverage detected