Encoder represents protocol encoder.
| 9 | |
| 10 | // Encoder represents protocol encoder. |
| 11 | type Encoder struct { |
| 12 | chunkLen int |
| 13 | redundancyFactor float64 |
| 14 | } |
| 15 | |
| 16 | // NewEncoder creates and inits a new encoder for the given chunk length. |
| 17 | func NewEncoder(n int) *Encoder { |
nothing calls this directly
no outgoing calls
no test coverage detected