MCPcopy Index your code
hub / github.com/google/codesearch / writeByte

Method writeByte

index/write.go:497–502  ·  view source on GitHub ↗
(x byte)

Source from the content-addressed store, hash-verified

495}
496
497func (b *bufWriter) writeByte(x byte) {
498 if len(b.buf) >= cap(b.buf) {
499 b.flush()
500 }
501 b.buf = append(b.buf, x)
502}
503
504func (b *bufWriter) writeString(s string) {
505 n := cap(b.buf) - len(b.buf)

Callers 1

addNameMethod · 0.80

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected