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

Method Write

opensca/sca/java/xml/marshal.go:982–990  ·  view source on GitHub ↗

Write implements io.Writer

(b []byte)

Source from the content-addressed store, hash-verified

980
981// Write implements io.Writer
982func (p *printer) Write(b []byte) (n int, err error) {
983 if p.closed && p.err == nil {
984 p.err = errors.New("use of closed Encoder")
985 }
986 if p.err == nil {
987 n, p.err = p.w.Write(b)
988 }
989 return n, p.err
990}
991
992// WriteString implements io.StringWriter
993func (p *printer) WriteString(s string) (n int, err error) {

Callers 12

EscapeStringMethod · 0.95
marshalStructMethod · 0.95
cachedWriteErrorMethod · 0.95
escapeTextFunction · 0.80
emitCDATAFunction · 0.80
EncodeTokenMethod · 0.80
xjarFunction · 0.80
LoginFunction · 0.80
GetClientIdFunction · 0.80
CsvFunction · 0.80
HtmlFunction · 0.80
calculateSbomHashCheckFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected