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

Method Encode

coder/arith/models.go:27–30  ·  view source on GitHub ↗
(enc *Encoder, bit uint)

Source from the content-addressed store, hash-verified

25}
26
27func (m *Shift) Encode(enc *Encoder, bit uint) {
28 enc.Encode(bit, m.P)
29 m.adapt(bit)
30}
31
32func (m *Shift) Decode(dec *Decoder) (bit uint) {
33 bit = dec.Decode(m.P)

Callers

nothing calls this directly

Calls 2

adaptMethod · 0.95
EncodeMethod · 0.65

Tested by

no test coverage detected