MCPcopy Create free account
hub / github.com/egonelbre/exp / WriteByte

Method WriteByte

bench/bulkencoder/encoder_test.go:28–37  ·  view source on GitHub ↗
(v byte)

Source from the content-addressed store, hash-verified

26}
27
28func (enc *BulkEncoder) WriteByte(v byte) {
29 enc.fill |= uint64(v) << enc.off
30 enc.off += 8
31 if enc.off >= 64 {
32 enc.data[enc.at] = enc.fill
33 enc.at++
34 enc.fill = 0
35 enc.off = 0
36 }
37}
38
39func (enc *BulkEncoder) WriteUint32(v uint32) {
40 enc.fill |= uint64(v) << enc.off

Callers 6

BenchmarkBulk_byteFunction · 0.95
BenchmarkBulk_4xbyteFunction · 0.95
BenchmarkBulk_mixFunction · 0.95
marshalHeaderFunction · 0.45
marshalBase128IntFunction · 0.45
marshalLengthFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected