Decoder represents protocol decode.
| 10 | |
| 11 | // Decoder represents protocol decode. |
| 12 | type Decoder struct { |
| 13 | chunkLen int |
| 14 | codec fountain.Codec |
| 15 | fd fountain.Decoder |
| 16 | completed bool |
| 17 | total int |
| 18 | cache map[string]struct{} |
| 19 | } |
| 20 | |
| 21 | // NewDecoder creates and inits a new decoder. |
| 22 | func NewDecoder() *Decoder { |
nothing calls this directly
no outgoing calls
no test coverage detected