MCPcopy
hub / github.com/go-yaml/yaml / write_all

Function write_all

emitterc.go:107–114  ·  emitterc.go::write_all

Write a whole string into buffer.

(emitter *yaml_emitter_t, s []byte)

Source from the content-addressed store, hash-verified

105
106// Write a whole string into buffer.
107func write_all(emitter *yaml_emitter_t, s []byte) bool {
108 for i := 0; i < len(s); {
109 if !write(emitter, s, &i) {
110 return false
111 }
112 }
113 return true
114}
115
116// Copy a line break character from a string into buffer.
117func write_break(emitter *yaml_emitter_t, s []byte, i *int) bool {

Callers 3

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected