(enabled bool)
| 78 | } |
| 79 | |
| 80 | func (d *Decoder) SetStrict(enabled bool) { |
| 81 | if enabled { |
| 82 | d.f = d.f.with(strict) |
| 83 | } else { |
| 84 | d.f = d.f.without(strict) |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | func decoderFlags(r Reader) flags { |
| 89 | return flags(r.Protocol().Features() << featuresBitOffset) |