MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / Decode

Method Decode

opensca/sca/java/xml/read.go:139–141  ·  view source on GitHub ↗

Decode works like Unmarshal, except it reads the decoder stream to find the start element.

(v any)

Source from the content-addressed store, hash-verified

137// Decode works like Unmarshal, except it reads the decoder
138// stream to find the start element.
139func (d *Decoder) Decode(v any) error {
140 return d.DecodeElement(v, nil)
141}
142
143// DecodeElement works like Unmarshal except that it takes
144// a pointer to the start XML element to decode into v.

Callers 15

ParsePipfileFunction · 0.80
ParsePipfileLockFunction · 0.80
ParseGopkgTomlFunction · 0.80
ParseGopkgLockFunction · 0.80
ReadComposerRepoJsonFunction · 0.80
ScaMethod · 0.80
ParseCdxJsonFunction · 0.80
ParseCdxXmlFunction · 0.80
ParseBomSWJsonFunction · 0.80
ParseSpdxJsonFunction · 0.80
ParseSpdxXmlFunction · 0.80
ParseDsdxJsonFunction · 0.80

Calls 1

DecodeElementMethod · 0.95

Tested by

no test coverage detected