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

Method Dump

loader/collada/common.go:29–41  ·  view source on GitHub ↗

Dump prints out information about the Source

(out io.Writer, indent int)

Source from the content-addressed store, hash-verified

27
28// Dump prints out information about the Source
29func (s *Source) Dump(out io.Writer, indent int) {
30
31 fmt.Fprintf(out, "%sSource id:%s name:%s\n", sIndent(indent), s.Id, s.Name)
32 ind := indent + step
33 switch at := s.ArrayElement.(type) {
34 case *FloatArray:
35 at.Dump(out, ind)
36 case *NameArray:
37 at.Dump(out, ind)
38 }
39 fmt.Fprintf(out, "%sTechniqueCommon\n", sIndent(ind))
40 s.TechniqueCommon.Accessor.Dump(out, ind+3)
41}
42
43//
44// NameArray

Callers

nothing calls this directly

Calls 2

sIndentFunction · 0.85
DumpMethod · 0.45

Tested by

no test coverage detected