MCPcopy
hub / github.com/golang/protobuf / WriteByte

Method WriteByte

proto/text_encode.go:164–174  ·  view source on GitHub ↗
(c byte)

Source from the content-addressed store, hash-verified

162}
163
164func (w *textWriter) WriteByte(c byte) error {
165 if w.compact && c == '\n' {
166 c = ' '
167 }
168 if !w.compact && w.complete {
169 w.writeIndent()
170 }
171 w.buf = append(w.buf, c)
172 w.complete = c == '\n'
173 return nil
174}
175
176func (w *textWriter) writeName(fd protoreflect.FieldDescriptor) {
177 if !w.compact && w.complete {

Callers 7

writeNameMethod · 0.95
writeMessageMethod · 0.95
writeSingularValueMethod · 0.95
writeQuotedStringMethod · 0.95
writeUnknownFieldsMethod · 0.95
PMethod · 0.80

Calls 1

writeIndentMethod · 0.95

Tested by

no test coverage detected