MCPcopy Create free account
hub / github.com/divan/txqr / NewDecoder

Function NewDecoder

decode.go:22–26  ·  view source on GitHub ↗

NewDecoder creates and inits a new decoder.

()

Source from the content-addressed store, hash-verified

20
21// NewDecoder creates and inits a new decoder.
22func NewDecoder() *Decoder {
23 return &Decoder{
24 cache: make(map[string]struct{}),
25 }
26}
27
28// NewDecoderSize creates and inits a new decoder for the known size.
29func NewDecoderSize(size, chunkLen int) *Decoder {

Callers 5

NewDecoderFunction · 0.92
TestTXQRFunction · 0.70
TestTXQRErasuresFunction · 0.70
BenchmarkTXQRDecodeFunction · 0.70
BenchmarkTXQRErasuresFunction · 0.70

Calls

no outgoing calls

Tested by 4

TestTXQRFunction · 0.56
TestTXQRErasuresFunction · 0.56
BenchmarkTXQRDecodeFunction · 0.56
BenchmarkTXQRErasuresFunction · 0.56