Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/egonelbre/exp
/ Encode
Method
Encode
coder/arith/models.go:59–62 ·
view source on GitHub ↗
(enc *Encoder, bit uint)
Source
from the content-addressed store, hash-verified
57
}
58
59
func
(m *Shift2) Encode(enc *Encoder, bit uint) {
60
enc.Encode(bit, m.P0+m.P1)
61
m.adapt(bit)
62
}
63
64
func
(m *Shift2) Decode(dec *Decoder) (bit uint) {
65
bit = dec.Decode(m.P0 + m.P1)
Callers
nothing calls this directly
Calls
2
adapt
Method · 0.95
Encode
Method · 0.65
Tested by
no test coverage detected