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

Method popEOF

opensca/sca/java/xml/xml.go:441–447  ·  view source on GitHub ↗

Undo a pushEOF. The element must have been finished, so the EOF should be at the top of the stack.

()

Source from the content-addressed store, hash-verified

439// Undo a pushEOF.
440// The element must have been finished, so the EOF should be at the top of the stack.
441func (d *Decoder) popEOF() bool {
442 if d.stk == nil || d.stk.kind != stkEOF {
443 return false
444 }
445 d.pop()
446 return true
447}
448
449// Record that we are starting an element with the given name.
450func (d *Decoder) pushElement(name Name) {

Callers 1

unmarshalInterfaceMethod · 0.95

Calls 1

popMethod · 0.95

Tested by

no test coverage detected