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

Method Decode

coder/arith/models.go:142–149  ·  view source on GitHub ↗
(dec *Decoder)

Source from the content-addressed store, hash-verified

140}
141
142func (tree Tree) Decode(dec *Decoder) (value uint) {
143 ctx := uint(1)
144 syms := tree.syms()
145 for ctx < syms {
146 ctx += ctx + tree[ctx-1].Decode(dec)
147 }
148 return ctx - syms
149}

Callers

nothing calls this directly

Calls 2

symsMethod · 0.95
DecodeMethod · 0.65

Tested by

no test coverage detected