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

Method writeUint32

index/write.go:554–559  ·  view source on GitHub ↗
(x uint32)

Source from the content-addressed store, hash-verified

552}
553
554func (b *bufWriter) writeUint32(x uint32) {
555 if cap(b.buf)-len(b.buf) < 4 {
556 b.flush()
557 }
558 b.buf = append(b.buf, byte(x>>24), byte(x>>16), byte(x>>8), byte(x))
559}
560
561func (b *bufWriter) writeUvarint(x uint32) {
562 if cap(b.buf)-len(b.buf) < 5 {

Callers 5

MergeFunction · 0.80
endTrigramMethod · 0.80
FlushMethod · 0.80
addNameMethod · 0.80
mergePostMethod · 0.80

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected