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

Method Encode

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

Source from the content-addressed store, hash-verified

90}
91
92func (m *Shift4) Encode(enc *Encoder, bit uint) {
93 enc.Encode(bit, m.P[0]+m.P[1]+m.P[2]+m.P[3])
94 m.adapt(bit)
95}
96
97func (m *Shift4) Decode(dec *Decoder) (bit uint) {
98 bit = dec.Decode(m.P[0] + m.P[1] + m.P[2] + m.P[3])

Callers

nothing calls this directly

Calls 2

adaptMethod · 0.95
EncodeMethod · 0.65

Tested by

no test coverage detected