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

Method writeTrigram

index/write.go:547–552  ·  view source on GitHub ↗
(t uint32)

Source from the content-addressed store, hash-verified

545}
546
547func (b *bufWriter) writeTrigram(t uint32) {
548 if cap(b.buf)-len(b.buf) < 3 {
549 b.flush()
550 }
551 b.buf = append(b.buf, byte(t>>16), byte(t>>8), byte(t))
552}
553
554func (b *bufWriter) writeUint32(x uint32) {
555 if cap(b.buf)-len(b.buf) < 4 {

Callers 2

fileidMethod · 0.80
endTrigramMethod · 0.80

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected