MCPcopy 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
59func NewByteEncoder(bytes int) *ByteEncoder {
60 return &ByteEncoder{data: make([]byte, bytes)}
61}
62
63func (enc *ByteEncoder) WriteByte(v byte) {
64 enc.data[enc.at] = v

Callers 5

BenchmarkByte_byteFunction · 0.85
BenchmarkByte_4xbyteFunction · 0.85
BenchmarkByte_uint32Function · 0.85
BenchmarkByte_4xuint32Function · 0.85
BenchmarkByte_mixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected