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

Method WriteString

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

WriteString implements io.StringWriter

(s string)

Source from the content-addressed store, hash-verified

991
992// WriteString implements io.StringWriter
993func (p *printer) WriteString(s string) (n int, err error) {
994 if p.closed && p.err == nil {
995 p.err = errors.New("use of closed Encoder")
996 }
997 if p.err == nil {
998 n, p.err = p.w.WriteString(s)
999 }
1000 return n, p.err
1001}
1002
1003// WriteByte implements io.ByteWriter
1004func (p *printer) WriteByte(c byte) error {

Callers 10

EscapeStringMethod · 0.95
createAttrPrefixMethod · 0.95
writeStartMethod · 0.95
writeEndMethod · 0.95
marshalStructMethod · 0.95
writeIndentMethod · 0.95
textMethod · 0.80
EncodeTokenMethod · 0.80
TreeMethod · 0.80
sortMapStringFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected