(enc *Encoder, bit uint)
| 90 | } |
| 91 | |
| 92 | func (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 | |
| 97 | func (m *Shift4) Decode(dec *Decoder) (bit uint) { |
| 98 | bit = dec.Decode(m.P[0] + m.P[1] + m.P[2] + m.P[3]) |