Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
497
func
(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
504
func
(b *bufWriter) writeString(s string) {
505
n := cap(b.buf) - len(b.buf)
Callers
1
addName
Method · 0.80
Calls
1
flush
Method · 0.95
Tested by
no test coverage detected