Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/egonelbre/exp
/ NewByteEncoder
Function
NewByteEncoder
bench/bulkencoder/encoder_test.go:59–61 ·
view source on GitHub ↗
(bytes int)
Source
from the content-addressed store, hash-verified
57
}
58
59
func
NewByteEncoder(bytes int) *ByteEncoder {
60
return
&ByteEncoder{data: make([]byte, bytes)}
61
}
62
63
func
(enc *ByteEncoder) WriteByte(v byte) {
64
enc.data[enc.at] = v
Callers
5
BenchmarkByte_byte
Function · 0.85
BenchmarkByte_4xbyte
Function · 0.85
BenchmarkByte_uint32
Function · 0.85
BenchmarkByte_4xuint32
Function · 0.85
BenchmarkByte_mix
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected