MCPcopy 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
59func (m *Shift2) Encode(enc *Encoder, bit uint) {
60 enc.Encode(bit, m.P0+m.P1)
61 m.adapt(bit)
62}
63
64func (m *Shift2) Decode(dec *Decoder) (bit uint) {
65 bit = dec.Decode(m.P0 + m.P1)

Callers

nothing calls this directly

Calls 2

adaptMethod · 0.95
EncodeMethod · 0.65

Tested by

no test coverage detected