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

Function yaml_emitter_write_bom

emitterc.go:1478–1488  ·  view source on GitHub ↗

Write the BOM character.

(emitter *yaml_emitter_t)

Source from the content-addressed store, hash-verified

1476
1477// Write the BOM character.
1478func yaml_emitter_write_bom(emitter *yaml_emitter_t) bool {
1479 if !flush(emitter) {
1480 return false
1481 }
1482 pos := emitter.buffer_pos
1483 emitter.buffer[pos+0] = '\xEF'
1484 emitter.buffer[pos+1] = '\xBB'
1485 emitter.buffer[pos+2] = '\xBF'
1486 emitter.buffer_pos += 3
1487 return true
1488}
1489
1490func yaml_emitter_write_indent(emitter *yaml_emitter_t) bool {
1491 indent := emitter.indent

Callers 1

Calls 1

flushFunction · 0.85

Tested by

no test coverage detected