MCPcopy Index your code
hub / github.com/XmirrorSecurity/OpenSCA-cli / WriteByte

Method WriteByte

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

WriteByte implements io.ByteWriter

(c byte)

Source from the content-addressed store, hash-verified

1002
1003// WriteByte implements io.ByteWriter
1004func (p *printer) WriteByte(c byte) error {
1005 if p.closed && p.err == nil {
1006 p.err = errors.New("use of closed Encoder")
1007 }
1008 if p.err == nil {
1009 p.err = p.w.WriteByte(c)
1010 }
1011 return p.err
1012}
1013
1014// Close the Encoder, indicating that no more data will be written. It flushes
1015// any buffered XML to the underlying writer and returns an error if the

Callers 10

writeStartMethod · 0.95
writeEndMethod · 0.95
marshalStructMethod · 0.95
writeIndentMethod · 0.95
rawTokenMethod · 0.80
attrvalMethod · 0.80
getcMethod · 0.80
textMethod · 0.80
readNameMethod · 0.80
EncodeTokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected